public function behaviors() { return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['create', 'update', 'delete', 'index'], 'rules' => [['actions' => ['create'], 'allow' => true, 'roles' => ['@']], ['actions' => ['update'], 'allow' => true, 'roles' => ['@']], ['actions' => ['delete'], 'allow' => true, 'roles' => ['@']], ['actions' => ['index'], 'allow' => true, 'roles' => [User::ROLE_ADMIN, User::ROLE_SUPER]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]]]; }
public function behaviors() { return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['post']]], 'access' => ['class' => AccessControl::className(), 'only' => ['index', 'report1', 'report2', 'report3', 'report4', 'report5', 'report6', 'indivreport3', 'subindivreport3'], 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['index', 'report1', 'report2', 'report3', 'report4', 'report5', 'report6', 'indivreport3', 'subindivreport3'], 'allow' => true, 'roles' => [User::ROLE_USER, User::ROLE_MODERATOR, User::ROLE_ADMIN]]]]]; }
/** * @inheritdoc */ public function behaviors() { return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['login', 'invite', 'auth', 'authlogin'], 'allow' => true, 'roles' => ['?']], ['actions' => ['user', 'index', 'logout', 'request-password-reset'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]]; }
/** * @inheritdoc */ public function behaviors() { return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'rules' => [['actions' => ['login'], 'allow' => true, 'roles' => ['?']], ['allow' => true, 'roles' => [User::ROLE_AMDIN]], ['actions' => ['logout'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]]; }
/** * @inheritdoc */ public function behaviors() { return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['create', 'view', 'update', 'delete'], 'rules' => [['actions' => ['login', 'error'], 'allow' => true], ['actions' => ['logout', 'index'], 'allow' => true, 'roles' => ['@']], ['actions' => ['create', 'update', 'delete'], 'allow' => true, 'roles' => [User::LEVEL_ADMIN]], ['actions' => ['view'], 'allow' => true, 'roles' => [User::LEVEL_ADMIN, User::LEVEL_INTERNAL_PEMERINTAH, User::LEVEL_INTERNAL_NON_PEMERINTAH, User::LEVEL_EKSTERNAL_PEMERINTAH]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post'], 'delete' => ['POST']]]]; }
/** * @inheritdoc */ public function behaviors() { return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['logout', 'signup', 'statistics'], 'rules' => [['actions' => ['signup'], 'allow' => true, 'roles' => ['?']], ['actions' => ['logout'], 'allow' => true, 'roles' => ['@']], ['actions' => ['statistics'], 'allow' => true, 'roles' => [User::ROLE_ADMIN, User::ROLE_SUPER]]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['logout' => ['post']]]]; }
public function behaviors() { return ['verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['POST', 'GET']]], 'access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['index', 'create', 'update', 'delete', 'reset', 'changepassword'], 'rules' => [['actions' => ['index', 'create', 'update', 'delete', 'reset', 'changepassword'], 'allow' => true, 'roles' => [\common\models\User::ROLE_ADMIN]]]]]; }
public function behaviors() { return ['access' => ['class' => AccessControl::className(), 'ruleConfig' => ['class' => AccessRule::className()], 'only' => ['create', 'view', 'update', 'delete', 'export', 'ubah', 'deaktivasi'], 'rules' => [['actions' => ['create', 'view', 'update', 'delete', 'export'], 'allow' => true, 'roles' => [User::LEVEL_ADMIN]], ['actions' => ['ubah', 'deaktivasi'], 'allow' => true, 'roles' => ['@']]]], 'verbs' => ['class' => VerbFilter::className(), 'actions' => ['delete' => ['POST']]]]; }