Esempio n. 1
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'only' => ['indivanc5', 'indivanc12week', 'indivnb2500', 'indivpap', 'indivdepress', 'indivdtp5', 'indivmmr1'], 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['indivanc5', 'indivanc12week', 'indivnb2500', 'indivpap', 'indivdepress', 'indivdtp5', 'indivmmr1'], 'allow' => true, 'roles' => [User::ROLE_USER, User::ROLE_ADMIN]]]]];
 }
Esempio n. 2
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['index', 'update', 'create', 'delete', 'imageids'], 'allow' => true, 'roles' => [\common\enum\ProfileRole::Car]], ['allow' => false]]]];
 }
Esempio n. 3
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['scoreboard', 'requests', 'control'], 'roles' => [Users::ROLE_ADMIN], 'allow' => true]]]];
 }
Esempio n. 4
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['logout'], 'rules' => [['actions' => ['logout'], 'allow' => true, 'roles' => [Identity::ROLE_CLIENTES, Identity::ROLE_ADMIN, Identity::ROLE_SUPERADMIN]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]];
 }
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['index', 'update', 'send', 'resend'], 'allow' => true, 'roles' => [\common\enum\ProfileRole::Email]], ['allow' => false]]]];
 }
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['logout', 'index', 'login', 'tour', 'hotel', 'about'], 'rules' => [['actions' => ['logout', 'index'], 'allow' => true, 'roles' => [User::ROLE_ADMIN, User::ROLE_USER]], ['actions' => ['tour', 'hotel', 'about'], 'allow' => true, 'roles' => [User::ROLE_ADMIN]], ['actions' => ['login'], 'allow' => true, 'roles' => ['?']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]];
 }
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['create'], 'allow' => true, 'roles' => ['?']], ['actions' => ['create', 'update', 'view', 'update-status'], 'allow' => true, 'roles' => [User::ROLE_ADMIN, User::ROLE_USER]], ['actions' => ['index', 'delete'], 'allow' => true, 'roles' => [User::ROLE_ADMIN]]]]];
 }
Esempio n. 8
0
 /**
  * controlling the different access rights
  * @return [type] [description]
  */
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['index', 'tag-list'], 'allow' => true, 'roles' => ['@']]]]];
 }
 public function behaviors()
 {
     return ['access' => ['class' => \yii\filters\AccessControl::className(), 'ruleConfig' => ['class' => \app\components\AccessRule::className()], 'only' => ['create', 'update', 'delete', 'index', 'view'], 'rules' => [['actions' => ['create', 'update', 'delete'], 'allow' => true, 'roles' => [\common\enum\ProfileRole::News]], ['actions' => ['index', 'view'], 'allow' => true]]]];
 }
Esempio n. 10
0
 /**
  * controlling the different access rights
  * @return [type] [description]
  */
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'AccessControl' => ['class' => '\\yii\\filters\\AccessControl', 'ruleConfig' => ['class' => \app\components\AccessRule::className()], 'rules' => [['allow' => true, 'actions' => array('index', 'addlocation', 'removelocation', 'addpicturelink', 'removepicturelink'), 'roles' => array('@')], ['allow' => true, 'actions' => array('index', 'addpicturelink'), 'roles' => array('?')]]]];
 }
Esempio n. 11
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::classname(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => [], 'rules' => [['actions' => [], 'allow' => true, 'roles' => [Auth::NIVEL_ADMIN]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }
Esempio n. 12
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'only' => ['indivpreht', 'indivhtscreen', 'indivhtlipid', 'indivhtkedney', 'indivht2control', 'indivhtperyearnor', 'indivuchtipd', 'indivhtperyear'], 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['indivpreht', 'indivhtscreen', 'indivhtlipid', 'indivhtkedney', 'indivht2control', 'indivhtperyearnor', 'indivuchtipd', 'indivhtperyear'], 'allow' => true, 'roles' => [User::ROLE_USER, User::ROLE_ADMIN]]]]];
 }
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['tour', 'detail', 'aboutus', 'set-model'], 'allow' => true, 'roles' => ['?', User::ROLE_ADMIN, User::ROLE_USER]], ['actions' => ['create', 'update', 'view', 'index', 'delete-multi-article'], 'allow' => true, 'roles' => [User::ROLE_ADMIN, User::ROLE_USER]], ['actions' => ['delete'], 'allow' => true, 'roles' => [User::ROLE_ADMIN]]]]];
 }
Esempio n. 14
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'only' => ['indivpredm', 'indivkedneydm', 'indivldldm', 'indivscreendm', 'indivucdmhba1c', 'indivucdm15uphba1c', 'indivucdmlipid', 'indivucdmmicroal', 'indivucdmfoot', 'indivucdmserfoot', 'indivucdmeye', 'indivdmperyear', 'indivucdm15uphba1ccontrol', 'indivucdm65uphba1ccontrol', 'indivucdm65downhba1ccontrol', 'indivucdmseripd', 'indivucdmadmit', 'indivucdmleg'], 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['indivpredm', 'indivkedneydm', 'indivldldm', 'indivscreendm', 'indivucdmhba1c', 'indivucdm15uphba1c', 'indivucdmlipid', 'indivucdmmicroal', 'indivucdmfoot', 'indivucdmserfoot', 'indivucdmeye', 'indivdmperyear', 'indivucdm15uphba1ccontrol', 'indivucdm65uphba1ccontrol', 'indivucdm65downhba1ccontrol', 'indivucdmseripd', 'indivucdmadmit', 'indivucdmleg'], 'allow' => true, 'roles' => [User::ROLE_USER, User::ROLE_ADMIN]]]]];
 }
Esempio n. 15
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['bind'], 'allow' => true, 'roles' => [User::ROLE_USER]], ['actions' => ['home'], 'allow' => true, 'roles' => [User::ROLE_SUPER_ADMIN, User::ROLE_ADMIN]]]]];
 }
Esempio n. 16
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => \yii\filters\AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['index', 'create', 'update', 'delete'], 'rules' => [['actions' => ['index', 'create'], 'allow' => true, 'roles' => [User::ROLE_USER, User::ROLE_MODERATOR, User::ROLE_ADMIN]], ['actions' => ['update'], 'allow' => true, 'roles' => [User::ROLE_MODERATOR, User::ROLE_ADMIN]], ['actions' => ['delete'], 'allow' => true, 'roles' => [User::ROLE_ADMIN]]]]];
 }
Esempio n. 17
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['show', "show-detail"], 'allow' => true, 'roles' => ["?"]], ['actions' => ['index', "create", "update", "list", "delete", "submit"], 'allow' => true, 'roles' => [User::ROLE_ADMIN]]]]];
 }
Esempio n. 18
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['index', 'view'], 'roles' => ["@"], 'allow' => true]]]];
 }
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['create', 'index', 'view', 'update', 'delete', 'wishes'], 'rules' => [['actions' => ['index', 'view'], 'allow' => true, 'roles' => ['@']], ['actions' => ['wishes'], 'allow' => true, 'roles' => [0, 1, 2]], ['actions' => ['update', 'create'], 'allow' => true, 'roles' => [3]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => \app\components\AccessRule::className()], 'rules' => [['actions' => ['index', 'update', 'create'], 'allow' => true, 'roles' => [\common\enum\ProfileRole::Product]], ['allow' => false]]]];
 }
Esempio n. 21
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['allow' => true, 'roles' => [User::ROLE_SUPER_ADMIN]]]]];
 }
Esempio n. 22
0
 /**
  * @inheritdoc
  */
 public function beforeAction($action)
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['index', 'view', 'create', 'update', 'delete'], 'rules' => [['actions' => ['index', 'view', 'create', 'update', 'delete'], 'allow' => true, 'roles' => [Identity::ROLE_ADMIN, Identity::ROLE_SUPERADMIN]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }
Esempio n. 23
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['allow' => true, 'roles' => [User::ROLE_ADMIN]]]]];
 }
Esempio n. 24
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => \app\components\AccessRule::className()], 'rules' => [['actions' => ['login', 'error'], 'allow' => true], ['actions' => ['logout', 'index'], 'allow' => true, 'roles' => ['@']], ['actions' => ['settings'], 'allow' => true, 'roles' => [\common\enum\ProfileRole::SiteSettings]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]];
 }
Esempio n. 25
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['POST']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['index', 'create', 'update', 'delete'], 'rules' => [['actions' => ['index', 'create', 'update', 'delete'], 'allow' => true, 'roles' => [Rol::ROLE_SUPER]]]]];
 }
Esempio n. 26
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['logout', 'index', 'view', 'create', 'update', 'delete', 'profile', 'settings', 'dashboard', 'payments', 'emails', 'contactView'], 'rules' => [['actions' => ['logout'], 'allow' => true, 'roles' => ['@']], ['actions' => ['index', 'view', 'create', 'update', 'delete', 'settings', 'profile', 'dashboard', 'payments', 'emails', 'contactView'], 'allow' => true, 'roles' => [0]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }
Esempio n. 27
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['show', 'show-detail', 'sort', 'search'], 'allow' => true, 'roles' => ['?', User::ROLE_ADMIN, User::ROLE_USER]], ['actions' => ['index', 'view'], 'allow' => true, 'roles' => [User::ROLE_ADMIN, User::ROLE_USER]], ['actions' => ['create', 'update', 'delete', 'upload', 'recycle-bin', 'delete-multi-tour'], 'allow' => true, 'roles' => [User::ROLE_ADMIN]]]]];
 }
Esempio n. 28
0
 public function behaviors()
 {
     return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'AccessControl' => ['class' => '\\yii\\filters\\AccessControl', 'ruleConfig' => ['class' => \app\components\AccessRule::className()], 'rules' => [['allow' => true, 'actions' => array('index', 'view', 'create', 'update', 'delete', 'disqus', 'onlineview', 'tag'), 'roles' => array('@')], ['allow' => true, 'actions' => array('onlineview', 'disqus', 'tag'), 'roles' => array('?')]]]];
 }