Have you tried the way I suggested?
Didn't it work?

On Mon, Sep 23, 2013 at 6:50 AM, Jayakumar Bellie <jkumar.o...@gmail.com> wrote:
> The user will be in multiple groups, in that case how to check for specific
> permission.
>
>
> On Thursday, September 19, 2013 6:54:36 PM UTC+5:30, viniciusban wrote:
>>
>> Speaking in RBAC terms, you should check for permissions.
>>
>> In your controller, something like:
>> @auth.has_permission("can_do_it")
>> def my_action():
>>    # code goes from here...
>>
>>
>>
>> On Thu, Sep 19, 2013 at 2:13 AM, Jayakumar Bellie <jkuma...@gmail.com>
>> 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+un...@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> 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.

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