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 59e117c + ea519e9 commit 0002141Copy full SHA for 0002141
apps/files_external/lib/Service/UserStoragesService.php
@@ -140,4 +140,10 @@ public function getVisibilityType() {
140
protected function isApplicable(StorageConfig $config) {
141
return ($config->getApplicableUsers() === [$this->getUser()->getUID()]) && $config->getType() === StorageConfig::MOUNT_TYPE_PERSONAl;
142
}
143
+
144
+ public function removeStorage($id) {
145
+ // verify ownership through $this->isApplicable() and otherwise throws an exception
146
+ $this->getStorage($id);
147
+ parent::removeStorage($id);
148
+ }
149
0 commit comments