![]() |
User Access Control - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: User Access Control (/showthread.php?tid=11739) |
User Access Control - El Forum - 09-22-2008 [eluser]jrad[/eluser] Has anyone tried using role-based access control with codeigniter? Or a successful implementation of a role-based access control on a codeigniter project? Something like the following: UserID Role Access Rights User1 -> Administrator -> create, read, update, delete User2 -> Billing Clerk -> create, read, update User3 -> Guest -> read Wherein access of a user depends only on the role and access rights granted. User Access Control - El Forum - 09-22-2008 [eluser]manilodisan[/eluser] Yes..we have that. Check my signature User Access Control - El Forum - 09-22-2008 [eluser]Sumon[/eluser] I have an idea in my mind. Load access right (Add, Edit, Update and Delete) in sessions and whether you load a page check the operation links comparing with session access rights. i.e. For example list of orders edit link only display when the session edit is true. hope it helps you ![]() User Access Control - El Forum - 09-22-2008 [eluser]manilodisan[/eluser] It's about permissions and privileges. Not necessarily add, edit, update and delete. A good ACL permits you to define your own sets of permissions with as many privileges as needed and place them in your code according to your own needs (to limit access based on permissions, to hide or show content etc.) |