public function actionRemoveAllRules() { if ($this->confirm('Are you sure want to remove all rules? All roles and permissions which have rules will be adjusted accordingly')) { $this->_authManager->removeAllRules(); } return 0; }
/** * @inheritdoc */ public function removeAllRules() { parent::removeAllRules(); $this->_rules = []; $this->_items = null; $this->invalidate([self::PART_ITEMS, self::PART_RULES]); }