Skip to content

Commit 1ef5e50

Browse files
Fix for #116. Only LDAPUsers were being counted as team members. Added the sum of both LDAP and Managed users to the total count.
(cherry picked from commit 9bc916a)
1 parent 127d8df commit 1ef5e50

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/webapp/admin/functions.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,14 @@ function formatTeamTable(res) {
3737
} else {
3838
res[i].apiKeysNum = res[i].apiKeys.length;
3939
}
40-
if (res[i].ldapUsers === undefined) {
41-
res[i].membersNum = 0;
42-
} else {
43-
res[i].membersNum = res[i].ldapUsers.length;
40+
41+
res[i].membersNum = 0;
42+
43+
if (res[i].ldapUsers !== undefined) {
44+
res[i].membersNum += res[i].ldapUsers.length;
45+
}
46+
if (res[i].managedUsers !== undefined) {
47+
res[i].membersNum += res[i].managedUsers.length;
4448
}
4549
}
4650
return res;

0 commit comments

Comments
 (0)