summaryrefslogtreecommitdiffstats
path: root/settings/src/components/userList.vue
diff options
context:
space:
mode:
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};