Answer the question
In order to leave comments, you need to log in
How to debug in yii2 (specifically rbac)?
In the controller, I check if the user has the ability to edit the post.
Yii::$app->user->can('updatePost', ['model'=>$model]);
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