Im trying to add a registration_key to manage view so that the admin can
approve a user in a view by just deleting the Pending
CONTROLLER
@auth.requires_login()
@auth.requires_membership('Admin')
def manageusers():
grid = SQLFORM.smartgrid(db.auth_user,user_signature=True)
return locals()
MODEL
if auth.login==True:
db.auth_user.registration_key.readable =
db.auth_user.registration_key.writable = True
the issue is that i cant even logout now
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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/d/optout.