| 5500 | } |
| 5501 | |
| 5502 | func (q *querier) InsertChatFile(ctx context.Context, arg database.InsertChatFileParams) (database.InsertChatFileRow, error) { |
| 5503 | // Authorize create on chat resource scoped to the owner and org. |
| 5504 | return insert(q.log, q.auth, rbac.ResourceChat.WithOwner(arg.OwnerID.String()).InOrg(arg.OrganizationID), q.db.InsertChatFile)(ctx, arg) |
| 5505 | } |
| 5506 | |
| 5507 | func (q *querier) InsertChatMessages(ctx context.Context, arg database.InsertChatMessagesParams) ([]database.ChatMessage, error) { |
| 5508 | // Authorize create on the parent chat (using update permission). |