Beispiel #1
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::classname(), 'only' => ['create', 'update'], 'rules' => [['allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]];
 }
Beispiel #2
0
 public function behaviors()
 {
     return ['access' => ['class' => AccessControl::classname(), 'only' => ['index', 'about'], 'rules' => [['allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]];
 }
 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']]]];
 }
 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']]]];
 }