CodeIgniter Forums

Full Version: Role, Module and Permission Restriction
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I would like to know is there any way where user can be restricted based on his role, module and permission for that module based on his role.


ID Role
1 Admin
2 Operator
3 Auditor

ID Role ID Permission
1 1 Add/Edit/Delete/View
2 2 Add/Edit/View
3 3 Edit/View/Delete

ID Role Id Module
1 1 1
2 1 2
3 1 3
4 2 2
5 3 2

ID Module Name
1 User Mang
2 Invoice
3 Site Setting

is there any way to have this functionality or what is ideal way.

El Forum

[eluser]Phil Sturgeon[/eluser]
Take a look at the permissions module in PyroCMS for this one. Right now it uses xml files to map the module and controller names but I'll be updating it to run directly off PHP soon using the ReflectorClass.