Browse Source

Improve handling of profile page

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/33643/head
Christopher Ng 3 years ago
parent
commit
9ba11ecefd
  1. 2
      core/Controller/ProfilePageController.php

2
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();

Loading…
Cancel
Save