building Role based application

后端 未结 1 1705
醉酒成梦
醉酒成梦 2021-01-01 04:15

I have to make a small website

where I have 7 type of users. which can login into system.

some of users have permissions to only add equipments and others ca

1条回答
  •  有刺的猬
    2021-01-01 04:48

    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 worthwhile start.

    However, there's plenty of information out there on how to create one. Here's a few links to get you started:

    Stackoverflow

    Role Based Access Control
    Role-based access to pages in PHP (dead link)

    Other sites

    A Role-Based Access Control (RBAC) system for PHP
    Fine Grained Role Based Access Control (RBAC) system
    Patterns Tutorial Series (part 1): RBAC Domain Model

    A search for PHP RBAC will no doubt reveal many more.

    0 讨论(0)
提交回复
热议问题