Closed arjenmeijer closed 9 years ago
public function behaviors() { return [ 'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'delete' => ['post'], ], ], 'access' => [ 'class' => AccessControl::className(), 'rules' => [ [ 'allow' => true, 'actions' => ['index', 'view', 'create', 'update','delete'], 'roles' => ['@'] ], [ 'allow' => false ] ] ] ]; }
Hmm.. I'll think about it. I usually use yii2-rbac.. I don't really use ACL for authorization..
Thanks @arjenmeijer !