我的 RealEstate PHP 应用程序有以下用户组,
My RealEstate PHP Application have following user groups,
管理员,版主代理
我想为以下用户指定以下权限.
i want to specify following permission to the following users.
管理员 - >
- 可以创建版主,
- 可以创建代理,
- 可以插入属性,
- 可以更新属性,
- 可以删除属性
因此管理员将拥有所有权限,简而言之,这里的管理员将是超级管理员
Hence an Admin will have all the privileges in short an Admin here will be superAdmin
我想将有限的权限分配给主持人,从而分配给代理.
I want to assign limited privileges to the moderator and hence to the agents.
我对如何为此创建数据库以及如何在我的 PHP 应用程序中实现它感到困惑.
i am confused on how to Create a Database for this and also on how to implement it in my PHP Application.
谢谢
推荐答案听起来您将需要一个基于角色的访问控制系统.开发一个不是确实是一项微不足道的任务,正如已经建议的那样,找到一个框架或现成的类这项工作值得一开始.
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.
基于角色的访问控制
www.tonymarston/php-mysql/role-based-access-control.html
www.sqlrecipes/database_design/fine_grained_role_based_access_control_rbac_system-3/
www.sqlrecipes/database_design/fine_grained_role_based_access_control_rbac_system-3/
www.sitepoint/forums/showthread.php?threadid=162027
您应该创建一个表,您必须在其中定义所有类型的角色.
You should create a table wher you have to define all type of role.
用户一张桌子
通过链接两个表将不同的角色关联到不同的用户.还有这样的事情......
relate different roles to different user Via linking two tables. and some thing like this ......
更多推荐
为我的 PHP 应用程序实现 ACL
发布评论