mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Improve handling of profile page
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
65299288a2
commit
d4abb3396c
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue