The "admin" group of your application will not give members access to the 
"admin" interface or the "appadmin" interface.

The "admin" in web2py is somebody who have complete and un-restricted 
access to the application source and the database.
The groups you create, however you call them, will never give the members 
the permission to become "admin".

If this is what you want to do you can but you need to change the 
authorization code inside the appadmin.py controller and replace

if (request.application == 'admin' and not session.authorized) or \
        (request.application != 'admin' and not 
gluon.fileutils.check_credentials(request)):
    redirect(URL('admin', 'default', 'index',
                 vars=dict(send=URL(args=request.args, vars=request.vars))))

with something like:

if not auth.has_membership(role="admin"): redirect(.....)



On Wednesday, 29 May 2013 22:52:40 UTC-5, Tim Richardson wrote:
>
> I want to give a user the ability to add users for one application.
>
> I have created a group called admin, made her a member, and decorated the 
> index function in controller appadmin 
> @auth.requires_membership('admin')
>
>
> Then I have added a link to the index function of the appadmin controller.
>
> I am nervous about this. 
>
>
>
>

-- 

--- 
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.


Reply via email to