Creating Role Based Applications

I need to make a small website

where I have 7 types of users. which can log in.

some users have permissions only to add equipment, while others can add / edit. some of them can only see.

There will be some common fields for all users adding equipment to the system, and some fields will be user-specific.

I need to track all changes in equipment using equipment that changes the user.

Can anyone explain what would be the best way to do this job.

The path in the structure of the perception table for users and tracking changes in equipment and tracking users for both logging in and for changes made by them.

I use the php and mysql database.

I do not want to go to CMS, Frameworks. This is a small application.

+5
source share
1 answer

It looks like you will need a role-based access control system . The development of one of them does not actually represent a trivial task, as has already been proposed, to find a framework or a finished class that will perform this work. Worth a start.

However, there is a lot of information on how to create it. Here are some links to get you started:

Stackoverflow

Role- based access control Role- based access to pages in PHP (dead link)

Other sites

(RBAC) PHP
(RBAC)
( 1): RBAC

PHP RBAC, , .

+4

All Articles