-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not allow folder creation with quota of 0 #9372
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍 (users with quota of 0 could not create folders, users that are over their quota can still do even if it is exceeded)
Mind to add those scenarios as test cases? |
@MorrisJobke sure I can. I just wanted to be sure we all agree this is the expected behavior before doing more work ;) |
Fixes #4577 Users with a quota of 0 are a special case. Since they can't (ever) create files on their own storage. Therefor it makes no real that they can create folders (and possible share those etc). Signed-off-by: Roeland Jago Douma <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #9372 +/- ##
===========================================
+ Coverage 51.2% 51.2% +<.01%
- Complexity 25581 25582 +1
===========================================
Files 1563 1563
Lines 88057 88058 +1
===========================================
+ Hits 45087 45089 +2
+ Misses 42970 42969 -1
|
Simple test case added |
This causes #11485 🙈 |
Fixes #4577
Users with a quota of 0 are a special case. Since they can't (ever)
create files on their own storage. Therefor it makes no real that they
can create folders (and possible share those etc).
Of course the alternative solution would be to do this in an app. However I feel this behavior makes the most sense...