Skip to content

Commit

Permalink
Changed AccessRule to check other roles/permissions (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
markux authored and dmeroff committed Aug 13, 2016
1 parent 9398573 commit 88dec7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions filters/AccessRule.php
Expand Up @@ -40,6 +40,8 @@ protected function matchRole($user)
if (!\Yii::$app->user->isGuest && \Yii::$app->user->identity->isAdmin) {
return true;
}
} elseif ($user->can($role)) {
return true;
}
}

Expand Down

0 comments on commit 88dec7a

Please sign in to comment.