Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Improve handling of profile page
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal authored and backportbot-nextcloud[bot] committed Aug 22, 2022
commit d4abb3396c75abed5f355495076d9662d8d7e346
2 changes: 1 addition & 1 deletion core/Controller/ProfilePageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function index(string $targetUserId): TemplateResponse {
);

$targetUser = $this->userManager->get($targetUserId);
if (!$targetUser instanceof IUser) {
if (!($targetUser instanceof IUser) || !$targetUser->isEnabled()) {
return $profileNotFoundTemplate;
}
$visitingUser = $this->userSession->getUser();
Expand Down