|
|
@ -124,6 +124,9 @@ class UserStoragesService extends StoragesService {
|
|
|
|
* @throws NotFoundException if the given storage does not exist in the config
|
|
|
|
* @throws NotFoundException if the given storage does not exist in the config
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function updateStorage(StorageConfig $updatedStorage) {
|
|
|
|
public function updateStorage(StorageConfig $updatedStorage) {
|
|
|
|
|
|
|
|
// verify ownership through $this->isApplicable() and otherwise throws an exception
|
|
|
|
|
|
|
|
$this->getStorage($updatedStorage->getId());
|
|
|
|
|
|
|
|
|
|
|
|
$updatedStorage->setApplicableUsers([$this->getUser()->getUID()]);
|
|
|
|
$updatedStorage->setApplicableUsers([$this->getUser()->getUID()]);
|
|
|
|
return parent::updateStorage($updatedStorage);
|
|
|
|
return parent::updateStorage($updatedStorage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|