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