Keep the current quota if no suitable quota is found

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Juan Pablo Villafáñez 2017-08-16 09:56:37 +02:00 committed by Arthur Schiwon
parent e70135bcbf
commit 18c35a7ab0
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 0 additions and 1 deletions

View File

@ -529,7 +529,6 @@ class User {
$targetUser->setQuota($quota);
} else {
$this->log->log('not suitable default quota found for user ' . $this->uid . ': [' . $defaultQuota . ']', \OCP\Util::WARN);
$targetUser->setQuota('default');
}
} else {
$this->log->log('trying to set a quota for user ' . $this->uid . ' but the user is missing', \OCP\Util::ERROR);