]> source.dussan.org Git - nextcloud-server.git/commitdiff
Improve handling of profile page 33648/head
authorChristopher Ng <chrng8@gmail.com>
Mon, 22 Aug 2022 19:26:56 +0000 (19:26 +0000)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Mon, 22 Aug 2022 23:39:29 +0000 (23:39 +0000)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
core/Controller/ProfilePageController.php

index 5a1c8a68e6b300831da7a94a9ef1501991d68f80..c819a75f867513e9615d8b694f2a8e13f86f68aa 100644 (file)
@@ -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();