From da583f05fce25a7f2ffadf54509b820bb7bc61e6 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Sat, 26 May 2018 10:51:24 +0200 Subject: Allow 0 quota by provisioning api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- settings/src/components/userList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'settings/src/components/userList.vue') 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}; -- cgit v1.2.3