On Thursday, July 26, 2018 at 1:43:28 PM UTC-4, Krista King wrote:
>
> I am taking over a legacy project that uses web2py for an application for 
> inputting simple forms. The developer claims that the first person who logs 
> into the app with a fresh DB is the admin, however this is not the case. 
> The first user is just a regular user. I need to be able to have an admin 
> assign forms to certain users. I don't know if this is anything someone on 
> here can help me with, but I thought I'd ask!
>

This is not a general feature of web2py, so must have been custom coded by 
the app developer, in which case, we'll need to see some relevant code to 
help.

It might be a good idea to look over the access control 
documentation: http://web2py.com/books/default/chapter/29/09/access-control.

Note, you can always go into appadmin and simply assign the user in 
question the appropriate role (by adding a record to the auth_membership 
table). This is probably better than having some automated check that runs 
on every new registration, given that it will only be needed on the very 
first registration.

Anthony
 

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to