Improve handling of profile page

Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
Christopher Ng 2022-08-22 19:26:56 +00:00
parent 2576609aac
commit 9ba11ecefd

View file

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