R
R
Roman2015-03-31 19:55:25
PHP
Roman, 2015-03-31 19:55:25

How to assign rights to users?

Rights
31c0a65956c84f6fb9f48b480d9ca790.png
table: Users table: Log
361711159fc14b8581a95fcac0e4ef16.png
in as admin , we are redirected to the main page, greetings, etc.
and here, on the main page, for each user group, you need to display different content. Probably, in addition to the login and password, you need to enter something else into the session for identification?
In general, the sequence of actions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Kudryavtsev, 2015-03-31
@kumaxim

Selective access control ( read )
Mandatory access control ( read )
Role-based access control ( read )
The vast majority of modern systems (like WP for example) use RBAC. Your case is also covered. Read the description, google for examples.

C
Centrino, 2015-03-31
@Centrino

www.developer.com/lang/php/creating-a-custom-acl-i...
Google ACLs. For example, the implementation of Zend.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question