Repository navigation
Consolidate getQuota and setQuota methods in User instance - #22252
Merged
6 commits merged intoFeb 9, 2016
Merged
6 commits merged into
6 commits merged into
Conversation
| */ | ||
| public function setQuota($quota) { | ||
| if($quota !== 'none' and $quota !== 'default') { | ||
| $quota= OC_Helper::computerFileSize($quota); |
Contributor
There was a problem hiding this comment.
this code needs some space 😄
Contributor
Author
There was a problem hiding this comment.
IDE should reformat on copy and paste ;D
Contributor
|
Great stuff, setting quota this way looks much nicer. |
Contributor
|
Looks like this still works, tested getting/setting from the users page and also querying the quota with Webdav. 👍 |
Contributor
|
👍 looks good |
Contributor
|
First error: |
blizzz
force-pushed
the
consolidate-user-set-quota
branch
from
February 9, 2016 17:11
acd0e6a to
a16feed
Compare
blizzz
force-pushed
the
consolidate-user-set-quota
branch
from
February 9, 2016 17:11
a16feed to
d19c47a
Compare
Contributor
|
👍 for the last commits |
ghost
pushed a commit
that referenced
this pull request
Feb 9, 2016
Consolidate getQuota and setQuota methods in User instance
| $versionsFileview = new \OC\Files\View('/'.$uid.'/files_versions'); | ||
|
|
||
| // get available disk space for user | ||
| $user = \OC::$server->getUserManager()->get($uid); |
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As @DeepDiver1975 did it with the email setter, we also should have the methods of reading and setting the quota within the user instance.
Please review @PVince81 @DeepDiver1975 @icewind1991