improve setting applicable for personal mounts
This commit is contained in:
parent
ab549970ca
commit
3895ab8451
1 changed files with 1 additions and 1 deletions
|
@ -104,8 +104,8 @@ class UserStoragesService extends StoragesService {
|
||||||
* @return StorageConfig storage config, with added id
|
* @return StorageConfig storage config, with added id
|
||||||
*/
|
*/
|
||||||
public function addStorage(StorageConfig $newStorage) {
|
public function addStorage(StorageConfig $newStorage) {
|
||||||
|
$newStorage->setApplicableUsers([$this->getUser()->getUID()]);
|
||||||
$config = parent::addStorage($newStorage);
|
$config = parent::addStorage($newStorage);
|
||||||
$this->dbConfig->addApplicable($config->getId(), DBConfigService::APPLICABLE_TYPE_USER, $this->getUser()->getUID());
|
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue