Merge pull request #33643 from nextcloud/enh/profile-handling

This commit is contained in:
Pytal 2022-08-22 16:36:37 -07:00 committed by GitHub
commit b5a4042391
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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