We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9398573 commit 88dec7aCopy full SHA for 88dec7a
filters/AccessRule.php
@@ -40,6 +40,8 @@ protected function matchRole($user)
40
if (!\Yii::$app->user->isGuest && \Yii::$app->user->identity->isAdmin) {
41
return true;
42
}
43
+ } elseif ($user->can($role)) {
44
+ return true;
45
46
47
0 commit comments