Skip to content

Commit

Permalink
Merge pull request #39435 from nextcloud/backport/39309/stable27
Browse files Browse the repository at this point in the history
[stable27] fix(profile): fix getUID on nullable user variable
  • Loading branch information
blizzz authored Aug 2, 2023
2 parents 0c3fe91 + 56899c1 commit a075034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Profile/ProfileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private function registerAction(ILinkAction $action, IUser $targetUser, ?IUser $
return;
}
if (!$this->appManager->isEnabledForUser($action->getAppId(), $visitingUser)) {
$this->logger->notice('App: ' . $action->getAppId() . ' cannot register actions as it is not enabled for the visiting user: ' . $visitingUser->getUID());
$this->logger->notice('App: ' . $action->getAppId() . ' cannot register actions as it is not enabled for the visiting user: ' . ($visitingUser ? $visitingUser->getUID() : '(user not connected)'));
return;
}
}
Expand Down

0 comments on commit a075034

Please sign in to comment.