We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84c153e + 7105380 commit 4fe430cCopy full SHA for 4fe430c
apps/files_external/lib/Service/UserStoragesService.php
@@ -127,6 +127,9 @@ public function addStorage(StorageConfig $newStorage) {
127
* @throws NotFoundException if the given storage does not exist in the config
128
*/
129
public function updateStorage(StorageConfig $updatedStorage) {
130
+ // verify ownership through $this->isApplicable() and otherwise throws an exception
131
+ $this->getStorage($updatedStorage->getId());
132
+
133
$updatedStorage->setApplicableUsers([$this->getUser()->getUID()]);
134
return parent::updateStorage($updatedStorage);
135
}
0 commit comments