Welcome Guest, Not a member yet? Register   Sign In
Role, Module and Permission Restriction
#1

[eluser]viral007in[/eluser]
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.

e.g.

Role
ID Role
1 Admin
2 Operator
3 Auditor

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

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

Module
ID Module Name
1 User Mang
2 Invoice
3 Site Setting

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

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




Theme © iAndrew 2016 - Forum software by © MyBB