MCPcopy Index your code
hub / github.com/coder/coder / UpdateChatWorkspaceBinding

Method UpdateChatWorkspaceBinding

coderd/database/dbauthz/dbauthz.go:6793–6803  ·  view source on GitHub ↗
(ctx context.Context, arg database.UpdateChatWorkspaceBindingParams)

Source from the content-addressed store, hash-verified

6791}
6792
6793func (q *querier) UpdateChatWorkspaceBinding(ctx context.Context, arg database.UpdateChatWorkspaceBindingParams) (database.Chat, error) {
6794 chat, err := q.db.GetChatByID(ctx, arg.ID)
6795 if err != nil {
6796 return database.Chat{}, err
6797 }
6798 if err := q.authorizeContext(ctx, policy.ActionUpdate, chat); err != nil {
6799 return database.Chat{}, err
6800 }
6801
6802 return q.db.UpdateChatWorkspaceBinding(ctx, arg)
6803}
6804
6805func (q *querier) UpdateCryptoKeyDeletesAt(ctx context.Context, arg database.UpdateCryptoKeyDeletesAtParams) (database.CryptoKey, error) {
6806 if err := q.authorizeContext(ctx, policy.ActionUpdate, rbac.ResourceCryptoKey); err != nil {

Callers

nothing calls this directly

Calls 3

authorizeContextMethod · 0.95
GetChatByIDMethod · 0.65

Tested by

no test coverage detected