Skip to content

Commit

Permalink
Kraken is released!
Browse files Browse the repository at this point in the history
  • Loading branch information
nenad-zivkovic committed Jan 7, 2015
1 parent 4a0bb78 commit 0bf29c4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions _protected/backend/controllers/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ public function behaviors()
'controllers' => ['user'],
'actions' => ['index', 'view', 'create', 'update', 'delete'],
'allow' => true,
'roles' => ['@'],
'matchCallback' => function ($rule, $action) {
return Yii::$app->user->can('admin');
},
'roles' => ['admin'],
],
[
// other rules
Expand Down

0 comments on commit 0bf29c4

Please sign in to comment.