| 5604 | } |
| 5605 | |
| 5606 | func (q *querier) InsertFile(ctx context.Context, arg database.InsertFileParams) (database.File, error) { |
| 5607 | return insert(q.log, q.auth, rbac.ResourceFile.WithOwner(arg.CreatedBy.String()), q.db.InsertFile)(ctx, arg) |
| 5608 | } |
| 5609 | |
| 5610 | func (q *querier) InsertGitSSHKey(ctx context.Context, arg database.InsertGitSSHKeyParams) (database.GitSSHKey, error) { |
| 5611 | return insertWithAction(q.log, q.auth, rbac.ResourceUser.WithOwner(arg.UserID.String()).WithID(arg.UserID), policy.ActionUpdatePersonal, q.db.InsertGitSSHKey)(ctx, arg) |