user->isGuest) { return false; } if ($this->identity->type == 'admin') { return true; } return $permissionName == $this->identity->type; } }