Skip to content

Commit

Permalink
Store quota overrides in preferences table
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Needham committed Feb 12, 2019
1 parent 3f1c2c3 commit 05ef048
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ public function setQuota($quota) {
$quota = OC_Helper::humanFileSize($quota);
}
$this->account->setQuota($quota);
// Set the quota on the preferences table as an override
$this->config->setUserValue($this->getUID(), 'core', 'quota', $quota);
$this->mapper->update($this->account);
$this->triggerChange('quota', $quota);
}
Expand Down

0 comments on commit 05ef048

Please sign in to comment.