Answer the question
In order to leave comments, you need to log in
How to check in yii2 rbac rule the ability to edit a record in a table that does not contain the user field?
Greetings.
Tell me, suppose there is an articles table, the table has a user field, that is, we know who owns the record.
For example, there is a subarticles table that is one-to-many related to articles , but it does not have a user field. How to check the connection of models in rule rbac to understand if the user has rights to the linked table? Do not add another user field to the subarticles table.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question