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

Function convertToChatRole

coderd/exp_chats_acl.go:309–315  ·  view source on GitHub ↗
(actions []policy.Action)

Source from the content-addressed store, hash-verified

307}
308
309func convertToChatRole(actions []policy.Action) codersdk.ChatRole {
310 if slice.SameElements(actions, db2sdk.ChatRoleActions(codersdk.ChatRoleRead)) {
311 return codersdk.ChatRoleRead
312 }
313
314 return codersdk.ChatRoleDeleted
315}

Callers 2

chatACLUsersMethod · 0.85
chatACLGroupsMethod · 0.85

Calls 2

SameElementsFunction · 0.92
ChatRoleActionsFunction · 0.92

Tested by

no test coverage detected