/** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array access control rules */ public function accessRules() { return array(array('allow', 'actions' => array('admin', 'delete', 'create', 'update', 'view'), 'users' => UserModule::getAdmins()), array('deny', 'users' => array('*'))); }
public static function getAdminsAndRoot() { $arr = UserModule::getAdmins(); array_push($arr, 'root'); return $arr; }
/** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array access control rules */ public function accessRules() { return array(array('allow', 'actions' => array('pages', 'createpage', 'updatepage', 'blocks', 'createblock', 'updateblock', 'delete', 'deleteblock'), 'users' => UserModule::getAdmins()), array('deny', 'users' => array('*'))); }
/** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array access control rules */ public function accessRules() { return array(array('allow', 'actions' => array('admin', 'view', 'customerAdmin', 'viewCustomer', 'editableSaver'), 'users' => UserModule::getAdmins()), array('allow', 'actions' => array('admin', 'delete', 'create', 'update', 'view', 'genCodeCard', 'emailInvitation', 'customerAdmin', 'viewCustomer', 'editableSaver', 'customerAjaxCompanyAdd', 'deleteCustomer'), 'expression' => "Yii::app()->user->checkAccess('UserAdmin')"), array('deny', 'users' => array('*'))); }
/** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array access control rules */ public function accessRules() { return array(array('allow', 'actions' => array('admin', 'delete', 'create', 'update', 'view'), 'users' => UserModule::getAdmins()), array('allow', 'actions' => array('admin', 'create', 'update', 'view'), 'expression' => "Yii::app()->user->checkAccess('UserAdmin')"), array('deny', 'users' => array('*'))); }
/** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array access control rules */ public function accessRules() { return array(array('allow', 'users' => UserModule::getAdmins()), array('deny', 'users' => array('*'))); }