User permission system
Posted: Mon Dec 13, 2004 10:47 am
Hi guys.
Whats the best way to implement a web based user permission system with PHP?
Let me elobarate on this further.
I have designed a database schema, basically this has a modules table, a permissions table, user, group, usergroup tables and these two...
ModulePermissions
GroupModulePermissions
I hope you can see, the permissions table, is there to list the available permissions for any module, like ...
view menu url
view
edit
delete
edit own
delete own
etc, etc
The modules permission table, then associates a particular module with a particular permission, as not all modules require all permissions.
The GroupModulePermissions then lists from the available permissions in ModulePermissions any permission you want a group to have.
I,m just not sure how to implement this and am looking for any ideas you all may have.
Whilst coding this I do intend to make use of OOP, which I havnt used before.
Does anyone have any tips, suggestions, alternatives etc,etc
Any help would be appreciated.
Thankyou.
Whats the best way to implement a web based user permission system with PHP?
Let me elobarate on this further.
I have designed a database schema, basically this has a modules table, a permissions table, user, group, usergroup tables and these two...
ModulePermissions
GroupModulePermissions
I hope you can see, the permissions table, is there to list the available permissions for any module, like ...
view menu url
view
edit
delete
edit own
delete own
etc, etc
The modules permission table, then associates a particular module with a particular permission, as not all modules require all permissions.
The GroupModulePermissions then lists from the available permissions in ModulePermissions any permission you want a group to have.
I,m just not sure how to implement this and am looking for any ideas you all may have.
Whilst coding this I do intend to make use of OOP, which I havnt used before.
Does anyone have any tips, suggestions, alternatives etc,etc
Any help would be appreciated.
Thankyou.