Skip to content

Commit

Permalink
Merge pull request #33648 from nextcloud/backport/33643/stable24
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Aug 23, 2022
2 parents 6471849 + d4abb33 commit 1a92992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Controller/ProfilePageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function index(string $targetUserId): TemplateResponse {
);

$targetUser = $this->userManager->get($targetUserId);
if (!$targetUser instanceof IUser) {
if (!($targetUser instanceof IUser) || !$targetUser->isEnabled()) {
return $profileNotFoundTemplate;
}
$visitingUser = $this->userSession->getUser();
Expand Down

0 comments on commit 1a92992

Please sign in to comment.