Would I have to switch to CRUD instead of SQLFORM?

On Wednesday, May 7, 2014 11:05:15 AM UTC-4, LoveWeb2py wrote:
>
> I know this is such a noob question, Niphlod. I'm starting to get a better 
> feel for it now. I created the groups and started to associate users.
>
> Two things:
> How could I show the user what group they're assigned too in their 
> profile? Would I just edit the user.html view or could I put something in 
> the controller?
> Can I allow two different groups to edit a database? For example, I want 
> the editor to be able to edit the database so:
> in the controller: auth.has_membership('editor')
> How could I add the users to that as well?
>
> On Wednesday, May 7, 2014 10:48:41 AM UTC-4, Niphlod wrote:
>>
>> then create whatever groups you need and associate the users to those 
>> groups.
>>
>> On Wednesday, May 7, 2014 2:37:01 PM UTC+2, LoveWeb2py wrote:
>>>
>>> I'm trying to setup auth_membership and I already have quite a few users 
>>> who have registered. The current schema is user_21, 22, 23 etc... should I 
>>> just use appadmin to change their role to "Editor", User, etc... or is 
>>> there a better way to do it?
>>>
>>> Also, how could I show them their role as read-only under their profile. 
>>> I read this:
>>>
>>> http://web2py.com/books/default/chapter/29/09/access-control#Access-Control-and-Basic-Authentication
>>>
>>> But it looks like its more for setting it prior to when people register.
>>>
>>> I want to give certain members read/write access to a sqlform grid I 
>>> have and others just read. 
>>>
>>

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

Reply via email to