protected function beforeDelete() { if (!parent::beforeDelete()) { return false; } AllPermissionsOptimizationUtil::roleBeingDeleted($this); return true; }