> > I should also add that if I add this line- > > auth.add_permission(1, 'read', r.id) >
Perhaps this is obvious, but, have you enabled the Auth tables (they are by default in the scaffolding app)?. In order to use rbac, you should have something like this in your model auth = Auth(db) # authentication/authorization ... auth.define_tables() # creates all needed tables Also, it is necessary to specify the kwarg record_id=<id> or else add the tablename argument to the method call. Something like auth.add_permission(1, 'read', record_id=r.id) or auth.add_permission(1, 'read', "", r.id) # the void string is de method tablename default For a more complete reference, check the access control section of the book. http://www.web2py.com/book/default/chapter/09 -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

