diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-12-15 13:30:08 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-01-08 11:54:31 +0100 |
commit | 3895ab8451c6452391d8742672c977f5904df1b1 (patch) | |
tree | 099e78da6f8f7fb19db840f9d4348a5b112922f8 /apps/files_external | |
parent | ab549970cadc8557f55a32d802c608ddf44238c8 (diff) | |
download | nextcloud-server-3895ab8451c6452391d8742672c977f5904df1b1.tar.gz nextcloud-server-3895ab8451c6452391d8742672c977f5904df1b1.zip |
improve setting applicable for personal mounts
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/service/userstoragesservice.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/service/userstoragesservice.php b/apps/files_external/service/userstoragesservice.php index 5cf04578caf..95dc102aa96 100644 --- a/apps/files_external/service/userstoragesservice.php +++ b/apps/files_external/service/userstoragesservice.php @@ -104,8 +104,8 @@ class UserStoragesService extends StoragesService { * @return StorageConfig storage config, with added id */ public function addStorage(StorageConfig $newStorage) { + $newStorage->setApplicableUsers([$this->getUser()->getUID()]); $config = parent::addStorage($newStorage); - $this->dbConfig->addApplicable($config->getId(), DBConfigService::APPLICABLE_TYPE_USER, $this->getUser()->getUID()); return $config; } |