Exemplo n.º 1
0
 /**
  * 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('*')));
 }
Exemplo n.º 2
0
 public static function getAdminsAndRoot()
 {
     $arr = UserModule::getAdmins();
     array_push($arr, 'root');
     return $arr;
 }
Exemplo n.º 3
0
 /**
  * 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('*')));
 }
Exemplo n.º 4
0
 /**
  * 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('*')));
 }
Exemplo n.º 5
0
 /**
  * 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('*')));
 }
Exemplo n.º 6
0
 /**
  * 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('*')));
 }