(ctx context.Context, arg database.InsertUsageEventParams)
| 5848 | } |
| 5849 | |
| 5850 | func (q *querier) InsertUsageEvent(ctx context.Context, arg database.InsertUsageEventParams) error { |
| 5851 | if err := q.authorizeContext(ctx, policy.ActionCreate, rbac.ResourceUsageEvent); err != nil { |
| 5852 | return err |
| 5853 | } |
| 5854 | return q.db.InsertUsageEvent(ctx, arg) |
| 5855 | } |
| 5856 | |
| 5857 | func (q *querier) InsertUser(ctx context.Context, arg database.InsertUserParams) (database.User, error) { |
| 5858 | // Always check if the assigned roles can actually be assigned by this actor. |
nothing calls this directly
no test coverage detected