/** * @return bool Whether the user is an admin or not. */ public function getIsAdmin() { return parent::getIsAdmin() || Yii::$app->user->can('admin'); }