aboutsummaryrefslogtreecommitdiffstats
path: root/settings/src/components/userList.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-26 10:51:24 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-06-07 11:30:37 +0200
commitda583f05fce25a7f2ffadf54509b820bb7bc61e6 (patch)
treef7297714c5af2bddaa1cf8e1af33c2ebdc8ab036 /settings/src/components/userList.vue
parent132597bbd3e3e1633fa83c77c268242d5c59a4f4 (diff)
downloadnextcloud-server-da583f05fce25a7f2ffadf54509b820bb7bc61e6.tar.gz
nextcloud-server-da583f05fce25a7f2ffadf54509b820bb7bc61e6.zip
Allow 0 quota by provisioning api
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src/components/userList.vue')
-rw-r--r--settings/src/components/userList.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/src/components/userList.vue b/settings/src/components/userList.vue
index f7aec953ecc..1deadc38cff 100644
--- a/settings/src/components/userList.vue
+++ b/settings/src/components/userList.vue
@@ -179,7 +179,7 @@ export default {
}
return disabledUsers;
}
- if (!settings.isAdmin) {
+ if (!this.settings.isAdmin) {
// We don't want subadmins to edit themselves
return this.users.filter(user => user.enabled !== false && user.id !== oc_current_user);
}
@@ -249,7 +249,7 @@ export default {
validateQuota(quota) {
// only used for new presets sent through @Tag
let validQuota = OC.Util.computerFileSize(quota);
- if (validQuota !== null && validQuota > 0) {
+ if (validQuota !== null && validQuota >= 0) {
// unify format output
quota = OC.Util.humanFileSize(OC.Util.computerFileSize(quota));
return this.newUser.quota = {id: quota, label: quota};