mirror of
https://github.com/DependencyTrack/dependency-track.git
synced 2026-02-14 19:31:07 +00:00
Fix for #116. Only LDAPUsers were being counted as team members. Added the sum of both LDAP and Managed users to the total count.
This commit is contained in:
parent
bd17098f2b
commit
9bc916aa76
1 changed files with 8 additions and 4 deletions
|
|
@ -37,10 +37,14 @@ function formatTeamTable(res) {
|
|||
} else {
|
||||
res[i].apiKeysNum = res[i].apiKeys.length;
|
||||
}
|
||||
if (res[i].ldapUsers === undefined) {
|
||||
res[i].membersNum = 0;
|
||||
} else {
|
||||
res[i].membersNum = res[i].ldapUsers.length;
|
||||
|
||||
res[i].membersNum = 0;
|
||||
|
||||
if (res[i].ldapUsers !== undefined) {
|
||||
res[i].membersNum += res[i].ldapUsers.length;
|
||||
}
|
||||
if (res[i].managedUsers !== undefined) {
|
||||
res[i].membersNum += res[i].managedUsers.length;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue