Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-08-23 09:49:30 +0300
committerGitHub <noreply@github.com>2022-08-23 09:49:30 +0300
commita206e74edd984c24fdc338ee60b509a95841c2ae (patch)
tree8690760e9bb2b3806a48d454b1082f8ccc2931a4
parenta848bc7eaed8dab5d5c92ed63badfe3b649576be (diff)
parent726d37f941c5283948a3cc82c957c030ded6cd39 (diff)
Merge pull request #33649 from nextcloud/backport/33643/stable23
-rw-r--r--core/Controller/ProfilePageController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/ProfilePageController.php b/core/Controller/ProfilePageController.php
index 38ea92968dc..e10b7b036d9 100644
--- a/core/Controller/ProfilePageController.php
+++ b/core/Controller/ProfilePageController.php
@@ -91,7 +91,7 @@ class ProfilePageController extends Controller {
);
$targetUser = $this->userManager->get($targetUserId);
- if (!$targetUser instanceof IUser) {
+ if (!($targetUser instanceof IUser) || !$targetUser->isEnabled()) {
return $profileNotFoundTemplate;
}
$visitingUser = $this->userSession->getUser();