correctly set applicables when updating user storage
This commit is contained in:
parent
8da3c3f125
commit
68bd003e4b
|
@ -109,6 +109,19 @@ class UserStoragesService extends StoragesService {
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
* Get the visibility type for this controller, used in validation
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue