Welcome Guest, Not a member yet? Register   Sign In
permissions -- cleanest way to show certain pages to only certain users
#1

[eluser]cruzanmo[/eluser]
Hi, there are certain pages that I don't want accessible to users based on their role. I assume doing this in the controller makes the most sense. Anyone tackled the problem of user permissions already and have advice on the best way to do it?

Thanks!
#2

[eluser]umefarooq[/eluser]
hi use this dx_auth library it will help you to control users and their roles also here is the link

http://ellislab.com/forums/viewthread/98465/
#3

[eluser]dag[/eluser]
i think this depends very strong on how complex you like your permission system to be.

i have written a rather complex authentification and acl system.

therefore i added an additional controller which extends the ci controller, in this controller from which all other controllers are extended i can ensure that the current user is still logged in.

all other permission checking is done either in the controller constructor or directly in the controllers' methods

dag




Theme © iAndrew 2016 - Forum software by © MyBB