improve setting applicable for personal mounts

This commit is contained in:
Robin Appelman 2015-12-15 13:30:08 +01:00 committed by Vincent Petry
parent ab549970ca
commit 3895ab8451

View file

@ -104,8 +104,8 @@ class UserStoragesService extends StoragesService {
* @return StorageConfig storage config, with added id
*/
public function addStorage(StorageConfig $newStorage) {
$newStorage->setApplicableUsers([$this->getUser()->getUID()]);
$config = parent::addStorage($newStorage);
$this->dbConfig->addApplicable($config->getId(), DBConfigService::APPLICABLE_TYPE_USER, $this->getUser()->getUID());
return $config;
}