SEED-platform / seed

Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Other
107 stars 55 forks source link

Allow superusers to list all org members #4593

Closed axelstudios closed 6 months ago

axelstudios commented 6 months ago

Any background context you want to provide?

From the admin page, a 500 error was occurring if the superuser attempted to select an organization under Add/Remove a user to an organization that the superuser wasn't a member of.

What's this PR do?

Fixes a bug that prevents superusers from listing members of an org that the superuser does not belong to.

How should this be manually tested?

  1. Go to the admin page, /app/#/profile/admin
  2. Under Add/Remove a user to an organization select an org that you do not belong to and confirm that the members are listed as expected