Welcome Guest, Not a member yet? Register   Sign In
Best way to implement role based access control
#1

[eluser]richzilla[/eluser]
Hi All, Whats the best way to go about implementing a role based access control control system. I can distinguish between the user groups easily enough, im doing that on the first uri segment (user/admin). However the problem i have is that users and admin share many of the same controller functions, there are only a few that are unique to the admin group, obviously i dont want to set up a load of new controllers if they'd contain largely similar code, at present im just mapping the shared user functions onto their respective admin functions using routes, however i can see this rapidly becoming difficult to manage. Is there a more effective way of doing this?

Any help would be appreciated.




Theme © iAndrew 2016 - Forum software by © MyBB