Exemplo n.º 1
0
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['access']['rules'] = array_merge([['allow' => true, 'actions' => ['program'], 'roles' => ['updateFaculty']]], $behaviors['access']['rules']);
     $behaviors['ajax']['actions'][] = 'program';
     return $behaviors;
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['access']['rules'][0]['actions'][] = 'create-additive';
     $behaviors['ajax']['actions'][] = 'create-additive';
     return $behaviors;
 }
Exemplo n.º 3
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['access']['rules'][0]['actions'][] = 'transfer';
     $behaviors['access']['rules'][0]['actions'][] = 'group';
     $behaviors['access']['rules'][0]['actions'][] = 'group-set';
     $behaviors['ajax']['actions'][] = 'transfer';
     return $behaviors;
 }
Exemplo n.º 4
0
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['access']['rules'] = array_merge([['allow' => true, 'actions' => ['download'], 'roles' => ['updateFaculty']], ['allow' => true, 'actions' => ['create', 'delete'], 'roles' => ['createDeleteFaculty']], ['allow' => false, 'actions' => ['create', 'delete'], 'roles' => ['updateFaculty']]], $behaviors['access']['rules']);
     return $behaviors;
 }