Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question