diff --git a/changes/11674-observer_plus-on-multiple-teams b/changes/11674-observer_plus-on-multiple-teams new file mode 100644 index 0000000000..ab11d06bad --- /dev/null +++ b/changes/11674-observer_plus-on-multiple-teams @@ -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" diff --git a/frontend/utilities/helpers.ts b/frontend/utilities/helpers.ts index eda98064a7..0dfc002503 100644 --- a/frontend/utilities/helpers.ts +++ b/frontend/utilities/helpers.ts @@ -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