M
M
Mikha Pankratov2015-03-24 05:13:07
Yii
Mikha Pankratov, 2015-03-24 05:13:07

Yii2 How to make view display rights?

Goodnight.
those. we go to the URL, for example, as in ask
1. Logged in, we get to "/ivanov" there all our data with the ability to edit and add changes.
2. if an authorized person visits another page "sidorov" he sees only information available to him - only reading, for example.
3. if not authorized, then another view - allowed info for non-authorizations
I want to make this a reality, tell me what, where and how? If it is possible with examples and in more detail.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Krivoshein, 2015-03-24
@kdes70

read about RBAC YII
habrahabr.ru/post/177873

M
Mikha Pankratov, 2015-03-24
@frmax

By link
I made a prototype for roles, but I don’t understand how to apply something to my theme ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question