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 5f25dd7095
commit d6d895dd74
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

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