From 68bd003e4b7ae50275515b015c8198f29becd2cb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 5 Jan 2016 13:29:56 +0100 Subject: correctly set applicables when updating user storage --- apps/files_external/service/userstoragesservice.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/files_external') diff --git a/apps/files_external/service/userstoragesservice.php b/apps/files_external/service/userstoragesservice.php index 95dc102aa96..9b622f9b470 100644 --- a/apps/files_external/service/userstoragesservice.php +++ b/apps/files_external/service/userstoragesservice.php @@ -109,6 +109,19 @@ class UserStoragesService extends StoragesService { return $config; } + /** + * Update storage to the configuration + * + * @param StorageConfig $updatedStorage storage attributes + * + * @return StorageConfig storage config + * @throws NotFoundException if the given storage does not exist in the config + */ + public function updateStorage(StorageConfig $updatedStorage) { + $updatedStorage->setApplicableUsers([$this->getUser()->getUID()]); + return parent::updateStorage($updatedStorage); + } + /** * Get the visibility type for this controller, used in validation * -- cgit v1.2.3