We have the following

   - db.auth_user
   - db.auth_group
   - db.auth_membership
   - db.auth_permission
   
I have created few more tables

db.define_table("devices_config",
      Field("name", "string", length=50, notnull=True),
      Field("device_type", "string", length=5, notnull=True))

db.define_table("devices_membership",
      Field("devices_config_id", "reference devices_config"),
      Field("auth_group_id", "reference auth_group"))

We can have one user in multiple groups. 
We can have one device in multiple groups.
Each group can have different permission.
Many to many combination with 3 tables.
When the user login he should be assigned with his appropriate permission 
for each screen.


On Tuesday, September 24, 2013 12:14:43 AM UTC+5:30, Massimo Di Pierro 
wrote:
>
> Can you show us some of your code?
>
> On Thursday, 19 September 2013 00:13:59 UTC-5, Jayakumar Bellie wrote:
>>
>> Hi,
>> I have groups with multiple permission.
>> I have a user assigned to multiple groups.
>> How to give access to user only for the groups they are assigned to.
>>
>>

-- 
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/groups/opt_out.

Reply via email to