From ddd1c8bc8689017559f6d6af36898fb7ddb28adb Mon Sep 17 00:00:00 2001
From: "John Molakvoæ (skjnldsv)" <skjnldsv@protonmail.com>
Date: Wed, 23 May 2018 13:01:40 +0200
Subject: Disabled fix since new users list
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
---
 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 ec08992e6cc..c7127706269 100644
--- a/settings/src/components/userList.vue
+++ b/settings/src/components/userList.vue
@@ -171,7 +171,7 @@ export default {
 		},
 		filteredUsers() {
 			if (this.selectedGroup === 'disabled') {
-				let disabledUsers = this.users.filter(user => user.enabled !== true);
+				let disabledUsers = this.users.filter(user => user.enabled === false);
 				if (disabledUsers.length===0 && this.$refs.infiniteLoading && this.$refs.infiniteLoading.isComplete) {
 					// disabled group is empty, redirection to all users
 					this.$router.push({name: 'users'});
@@ -179,7 +179,7 @@ export default {
 				}
 				return disabledUsers;
 			}
-			return this.users.filter(user => user.enabled === true);
+			return this.users.filter(user => user.enabled !== false);
 		},
 		groups() {
 			// data provided php side + remove the disabled group
-- 
cgit v1.2.3

