Пример #1
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::classname(), 'only' => ['create', 'update'], 'rules' => [['allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }
Пример #2
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::classname(), 'only' => ['index', 'about'], 'rules' => [['allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]];
 }
Пример #3
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::classname(), 'only' => ['index', 'create', 'update', 'delete', 'view', 'target', 'accomplishment', 'overview', 'performance'], 'rules' => [['allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }
Пример #4
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']]]];
 }