From 968a1bf9ae9f860894a7e73862384935a14a476b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 4 Oct 2017 15:40:39 +0200 Subject: [PATCH] Allow quota of 0 again Regression from f1fccaca0605a5d183f78b2c39d2e09a54753787 Signed-off-by: Joas Schilling --- settings/js/users/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/users/users.js b/settings/js/users/users.js index e608efb491..5fa79d0347 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -561,7 +561,7 @@ var UserList = { if (quota === 'other') { return; } - if ((quota !== 'default' && quota !=="none") && (!OC.Util.computerFileSize(quota))) { + if (quota !== 'default' && quota !== "none" && OC.Util.computerFileSize(quota) === null) { // 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}));