(ctx context.Context, arg database.GetUsersParams)
| 4830 | } |
| 4831 | |
| 4832 | func (q *querier) GetUsers(ctx context.Context, arg database.GetUsersParams) ([]database.GetUsersRow, error) { |
| 4833 | // This does the filtering in SQL. |
| 4834 | prep, err := prepareSQLFilter(ctx, q.auth, policy.ActionRead, rbac.ResourceUser.Type) |
| 4835 | if err != nil { |
| 4836 | return nil, xerrors.Errorf("(dev error) prepare sql filter: %w", err) |
| 4837 | } |
| 4838 | return q.db.GetAuthorizedUsers(ctx, arg, prep) |
| 4839 | } |
| 4840 | |
| 4841 | // GetUsersByIDs is only used for usernames on workspace return data. |
| 4842 | // This function should be replaced by joining this data to the workspace query |
no test coverage detected