Answer the question
In order to leave comments, you need to log in
How to use bizrule in yii rbac?
Rbac is configured according to this recipe
yiiframework.ru/doc/cookbook/en/access.rbac.file
how to use bizrule in auth.php config file and in view?
Let's say a file can only be downloaded by a certain person.
In the view, of course, you can write if(Yii::app()->user->id == $file->user_id)
But then the administrator will not be able to download this file if he logs in under his account.
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