Esempio n. 1
0
 /**
  * @hass-todo 记住给其他模块也添加上verbs过滤
  * @inheritdoc
  */
 public function behaviors()
 {
     return ['rbac' => ['class' => AccessControl::className()], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post'], 'confirm' => ['post'], 'block' => ['post']]]];
 }
Esempio n. 2
0
 public function behaviors()
 {
     return ['rbac' => ['class' => AccessControl::className()]];
 }