diff options
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/service/userstoragesservice.php | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ -110,6 +110,19 @@ class UserStoragesService extends StoragesService { } /** + * 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 * * @return string BackendService::VISIBILITY_* constants |