We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2576609 + 9ba11ec commit b5a4042Copy full SHA for b5a4042
1 file changed
core/Controller/ProfilePageController.php
@@ -79,7 +79,7 @@ public function index(string $targetUserId): TemplateResponse {
79
);
80
81
$targetUser = $this->userManager->get($targetUserId);
82
- if (!$targetUser instanceof IUser) {
+ if (!($targetUser instanceof IUser) || !$targetUser->isEnabled()) {
83
return $profileNotFoundTemplate;
84
}
85
$visitingUser = $this->userSession->getUser();
0 commit comments