On Monday, October 24, 2011 7:06:12 PM UTC-4, lucas wrote:
>
> ok, i tried the auth.add_permission(group_id=2, name="read",
> table_name="news") line and just stuck it under db.py. i still can't
> get a True out of the has_permission('read') or has_permission(2,
> 'read') or has_permission(grou
btw, i am using 1.98.2 and will probably upgrade to 1.99.2 soon.
ok, i tried the auth.add_permission(group_id=2, name="read",
table_name="news") line and just stuck it under db.py. i still can't
get a True out of the has_permission('read') or has_permission(2,
'read') or has_permission(group_id=2, name='read'), nothing.
your second suggestion gets me thinking.
On Monday, October 24, 2011 5:29:41 PM UTC-4, lucas wrote:
>
> ok, that was totally helpful, thanx for all of the help.
>
> i have gotten far, using has_membership and requires_membership often
> and working perfectly, both in controllers and views.
>
> having a bit of a problem with auth.has_pe
ok, that was totally helpful, thanx for all of the help.
i have gotten far, using has_membership and requires_membership often
and working perfectly, both in controllers and views.
having a bit of a problem with auth.has_permission(). i have a group/
role, auth_group id=2, called Guest and under
On Monday, October 24, 2011 8:04:25 AM UTC-4, lucas wrote:
>
>
> first i want to shutoff the default of creating a new group for each
> registered person. what is the setting to override that default
> behavior?
>
auth.settings.create_user_groups = False
See http://web2py.com/book/default/chap
6 matches
Mail list logo