mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: don't error when checking login credential storage from cli
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
6dd6d06606
commit
fa61c4c57d
1 changed files with 4 additions and 2 deletions
|
|
@ -43,8 +43,10 @@ class UserContext {
|
|||
}
|
||||
try {
|
||||
$shareToken = $this->request->getParam('token');
|
||||
$share = $this->shareManager->getShareByToken($shareToken);
|
||||
return $share->getShareOwner();
|
||||
if ($shareToken !== null) {
|
||||
$share = $this->shareManager->getShareByToken($shareToken);
|
||||
return $share->getShareOwner();
|
||||
}
|
||||
} catch (ShareNotFound $e) {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue