mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
fix(profile): fix getUID on nullable user variable
As per method signature, $visitingUser is nullable, so we can't be sure calling getUid() on it will work. Closes #35766 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5c6ed30369
commit
cd9dac1d20
1 changed files with 1 additions and 1 deletions
|
|
@ -169,7 +169,7 @@ class ProfileManager {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue