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