Welcome Guest, Not a member yet? Register   Sign In
User Access Control
#1

[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.
#2

[eluser]manilodisan[/eluser]
Yes..we have that. Check my signature
#3

[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 Wink
#4

[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.)




Theme © iAndrew 2016 - Forum software by © MyBB