summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2022-08-22 19:26:56 +0000
committerChristopher Ng <chrng8@gmail.com>2022-08-22 19:28:35 +0000
commit9ba11ecefd93c13bbb1cfb02b19342d50dc67fb8 (patch)
tree456f032b350ea67d4d1c0a3c8b2642099232b9b0 /core
parent2576609aac3555da0926c27b879df610a8b0f43c (diff)
downloadnextcloud-server-9ba11ecefd93c13bbb1cfb02b19342d50dc67fb8.tar.gz
nextcloud-server-9ba11ecefd93c13bbb1cfb02b19342d50dc67fb8.zip
Improve handling of profile page
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core')
-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 515c1c5a352..61573f43753 100644
--- a/core/Controller/ProfilePageController.php
+++ b/core/Controller/ProfilePageController.php
@@ -79,7 +79,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();