mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
UI: Multiple team oberver plus bug (#11897)
This commit is contained in:
parent
78635b310c
commit
c733aca3f2
2
changes/11674-observer_plus-on-multiple-teams
Normal file
2
changes/11674-observer_plus-on-multiple-teams
Normal file
@ -0,0 +1,2 @@
|
||||
- Fix a bug in the users table where users that are observer+ for all of more than one team were
|
||||
listed as "Various roles"
|
@ -506,6 +506,9 @@ export const generateRole = (
|
||||
} else if (listOfRoles.every((role): boolean => role === "observer")) {
|
||||
// only team observers
|
||||
return "Observer";
|
||||
} else if (listOfRoles.every((role): boolean => role === "observer_plus")) {
|
||||
// only team observers plus
|
||||
return "Observer+";
|
||||
}
|
||||
|
||||
return "Various"; // no global role and multiple teams
|
||||
|
Loading…
Reference in New Issue
Block a user