Have you already read the book about this [1]?

[1] http://web2py.com/books/default/chapter/29/09/access-control#Authorization 
<http://web2py.com/books/default/chapter/29/09/access-control#Authorization>

—
Vinicius.




> On 21 Sep 2015, at 15:07, ace zenith <[email protected]> wrote:
> 
> 
> Hi, I am trying to implement a user role based system.
> 
> I want to change views based on user roles to restrict certain users from 
> accessing specific controllers.
> Userrole -> 1,2,3
> Controller -> A,B,C,D
> 
> now Userrole 1 can access A and B, Userrole 2 can acces A,C and Userrole 3 
> can access A,D
> 
> Can anyone help me understand the implementation with an example. I am 
> searching for an user role bases example for sometime now but nowhere to be 
> found.
> 
> Please help.
> 
> -- 
> Resources:
> - http://web2py.com <http://web2py.com/>
> - http://web2py.com/book <http://web2py.com/book> (Documentation)
> - http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source 
> code)
> - https://code.google.com/p/web2py/issues/list 
> <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] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

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