diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/auth/password/globalauth.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_external/lib/auth/password/globalauth.php b/apps/files_external/lib/auth/password/globalauth.php index b1e52fb53ab..0684ba7998d 100644 --- a/apps/files_external/lib/auth/password/globalauth.php +++ b/apps/files_external/lib/auth/password/globalauth.php @@ -74,6 +74,8 @@ class GlobalAuth extends AuthMechanism { public function manipulateStorageConfig(StorageConfig &$storage, IUser $user = null) { if ($storage->getType() === StorageConfig::MOUNT_TYPE_ADMIN) { $uid = ''; + } elseif (is_null($user)) { + throw new InsufficientDataForMeaningfulAnswerException('No credentials saved'); } else { $uid = $user->getUID(); } |