From 387071c0ad2d1b6f3a4db6fab03e0420fb43914b Mon Sep 17 00:00:00 2001 From: Herbert Maschke Date: Thu, 5 Mar 2015 18:57:19 +0100 Subject: [PATCH] Make user module independent of role module in default configuration --- user/controllers/YumUserController.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/user/controllers/YumUserController.php b/user/controllers/YumUserController.php index 500f5da..5c979e7 100644 --- a/user/controllers/YumUserController.php +++ b/user/controllers/YumUserController.php @@ -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('*'), ),