summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 78118d5c5aa..4ce77648826 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -584,7 +584,7 @@ var UserList = {
if (quota === 'other') {
return;
}
- if (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0) {
+ if ((quota !== 'default' && quota !=="none") && (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0)) {
// the select component has added the bogus value, delete it again
$select.find('option[selected]').remove();
OC.Notification.showTemporary(t('core', 'Invalid quota value "{val}"', {val: quota}));