Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $behaviors = parent::behaviors();
     $behaviors['verbs']['actions'][] = ['create-third' => ['post', 'get']];
     $behaviors['access']['rules'][] = ['actions' => ['create-third', 'advanced-drop-down-list', 'settings', 'export', 'edit-row', 'refresh-row', 'upload'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('consult'), 'permission.consult:*']];
     $behaviors['verbs']['actions'][] = ['view' => ['post', 'get']];
     $behaviors['access']['rules'][] = ['actions' => ['view', 'advanced-drop-down-list', 'settings', 'export', 'edit-row', 'refresh-row', 'upload'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('consult'), 'permission.consult:*']];
     return $behaviors;
 }
Exemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function behaviors()
 {
     $b = parent::behaviors();
     $b['access']['rules'][] = ['actions' => ['view', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('consult'), 'permission.consult:*']];
     $b['access']['rules'][] = ['actions' => ['delete-attribute', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     $b['access']['rules'][] = ['actions' => ['add-attribute', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     $b['access']['rules'][] = ['actions' => ['save-variant', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     $b['access']['rules'][] = ['actions' => ['save-variant-price', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     $b['access']['rules'][] = ['actions' => ['save-variant-logistic', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     $b['access']['rules'][] = ['actions' => ['add-cross-sale', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     $b['access']['rules'][] = ['actions' => ['save-discount', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     $b['access']['rules'][] = ['actions' => ['update-logistic-strategy', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     $b['access']['rules'][] = ['actions' => ['remove-media', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('update'), 'permission.update:*']];
     return $b;
 }
Exemplo n.º 3
0
 public function behaviors()
 {
     $b = parent::behaviors();
     $b['access']['rules'][] = ['actions' => ['view', 'advanced-drop-down-list', 'settings', 'export'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('consult'), 'permission.consult:*']];
     return $b;
 }
Exemplo n.º 4
0
 public function behaviors()
 {
     $b = parent::behaviors();
     $b['access']['rules'][] = ['actions' => ['download'], 'allow' => true, 'roles' => [$this->getActionControllerPermission('consult'), 'permission.consult:*']];
     return $b;
 }