ListWorkspaces returns every non-deleted workspace, unordered by user. This is intended for admin-panel cross-tenant views and the pre-auth/fresh-install bootstrap. End-user workspace switchers should call GetUserWorkspaces instead, which scopes to the user's memberships.
()
| 13 | // pre-auth/fresh-install bootstrap. End-user workspace switchers should |
| 14 | // call GetUserWorkspaces instead, which scopes to the user's memberships. |
| 15 | func (s *Store) ListWorkspaces() ([]models.Workspace, error) { |
| 16 | return s.ListWorkspacesQ(s.db) |
| 17 | } |
| 18 | |
| 19 | // ListWorkspacesQ is ListWorkspaces against a caller-supplied executor, so a |
| 20 | // migration's gate can read the workspace list inside the same snapshot |
no test coverage detected