Implementing ACL for my PHP application

前端 未结 2 1394
攒了一身酷
攒了一身酷 2020-12-04 20:39

My RealEstate PHP Application have following user groups,

Admins, Moderators Agents

i want to specify following permission to the following users.

2条回答
  •  攒了一身酷
    2020-12-04 20:56

    It sounds like you are going to need a role-based access control system. Developing one is not really a trivial task, so as already suggested, finding a framework or ready-made class that does the job would be a worth while start.

    Role Based Access Control

    http://www.tonymarston.net/php-mysql/role-based-access-control.html

    http://www.sqlrecipes.com/database_design/fine_grained_role_based_access_control_rbac_system-3/

    http://www.sitepoint.com/forums/showthread.php?threadid=162027

    You should create a table wher you have to define all type of role.

    and one table for users

    relate different roles to different user Via linking two tables. and some thing like this ......

提交回复
热议问题