diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2022-08-22 16:36:37 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 16:36:37 -0700 |
commit | b5a40423915de01912f2e9a3460219ee3f1cbf44 (patch) | |
tree | 456f032b350ea67d4d1c0a3c8b2642099232b9b0 | |
parent | 2576609aac3555da0926c27b879df610a8b0f43c (diff) | |
parent | 9ba11ecefd93c13bbb1cfb02b19342d50dc67fb8 (diff) | |
download | nextcloud-server-b5a40423915de01912f2e9a3460219ee3f1cbf44.tar.gz nextcloud-server-b5a40423915de01912f2e9a3460219ee3f1cbf44.zip |
Merge pull request #33643 from nextcloud/enh/profile-handling
-rw-r--r-- | core/Controller/ProfilePageController.php | 2 |
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(); |