mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #39309 from nextcloud/bug/35766/fix-get-uid-on-nullable
fix(profile): fix getUID on nullable user variable
This commit is contained in:
commit
de4c2196a1
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