Skip to content

Commit b5a4042

Browse files
authored
Merge pull request #33643 from nextcloud/enh/profile-handling
2 parents 2576609 + 9ba11ec commit b5a4042

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/Controller/ProfilePageController.php

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

8181
$targetUser = $this->userManager->get($targetUserId);
82-
if (!$targetUser instanceof IUser) {
82+
if (!($targetUser instanceof IUser) || !$targetUser->isEnabled()) {
8383
return $profileNotFoundTemplate;
8484
}
8585
$visitingUser = $this->userSession->getUser();

0 commit comments

Comments
 (0)