diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-02-08 13:45:52 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-02-08 13:45:52 +0100 |
commit | 678a3abf6d83deca705076034a2c2c1f61647db5 (patch) | |
tree | 2aca44710d87eb2ce675303f291f16f1fdeb0f24 /apps/files_external/lib | |
parent | 97b2e19c786e037acd99e31aabbf193c805617dd (diff) | |
download | nextcloud-server-678a3abf6d83deca705076034a2c2c1f61647db5.tar.gz nextcloud-server-678a3abf6d83deca705076034a2c2c1f61647db5.zip |
handle no user set for personal global auth
Diffstat (limited to 'apps/files_external/lib')
-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(); } |