Skip to content

Commit

Permalink
Make user module independent of role module in default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
thyseus committed Mar 5, 2015
1 parent 9580cb2 commit 387071c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions user/controllers/YumUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@ public function accessRules() {
'csv'),
'expression' => 'Yii::app()->user->isAdmin()'
),
array('allow',
'actions'=>array('update'),
'expression' => 'Yii::app()->user->can("admin-user-update")'
),

array('allow',
'actions'=>array('create'),
'expression' => 'Yii::app()->user->can("admin-user-create")'
),
array('allow',
'actions'=>array('admin'),
'expression' => 'Yii::app()->user->can("admin-user")'
),
array('deny', // deny all other users
'users'=>array('*'),
),
Expand Down

0 comments on commit 387071c

Please sign in to comment.