(ctx context.Context, userIDs []uuid.UUID)
| 8429 | } |
| 8430 | |
| 8431 | func (q *querier) ValidateUserIDs(ctx context.Context, userIDs []uuid.UUID) (database.ValidateUserIDsRow, error) { |
| 8432 | // This check is probably overly restrictive, but the "correct" check isn't |
| 8433 | // necessarily obvious. It's only used as a verification check for ACLs right |
| 8434 | // now, which are performed as system. |
| 8435 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
| 8436 | return database.ValidateUserIDsRow{}, err |
| 8437 | } |
| 8438 | return q.db.ValidateUserIDs(ctx, userIDs) |
| 8439 | } |
| 8440 | |
| 8441 | func (q *querier) GetAuthorizedTemplates(ctx context.Context, arg database.GetTemplatesWithFilterParams, _ rbac.PreparedAuthorized) ([]database.Template, error) { |
| 8442 | // TODO Delete this function, all GetTemplates should be authorized. For now just call getTemplates on the authz querier. |
nothing calls this directly
no test coverage detected