Skip to content

Commit 1a92992

Browse files
authored
Merge pull request #33648 from nextcloud/backport/33643/stable24
2 parents 6471849 + d4abb33 commit 1a92992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/Controller/ProfilePageController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function index(string $targetUserId): TemplateResponse {
9191
);
9292

9393
$targetUser = $this->userManager->get($targetUserId);
94-
if (!$targetUser instanceof IUser) {
94+
if (!($targetUser instanceof IUser) || !$targetUser->isEnabled()) {
9595
return $profileNotFoundTemplate;
9696
}
9797
$visitingUser = $this->userSession->getUser();

0 commit comments

Comments
 (0)