MCPcopy Create free account
hub / github.com/coder/coder / ChatNoACLConverter

Function ChatNoACLConverter

coderd/rbac/regosql/configs.go:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func ChatNoACLConverter() *sqltypes.VariableConverter {
68 matcher := chatBaseConverter()
69 matcher.RegisterMatcher(
70 sqltypes.AlwaysFalse(groupACLMatcher(matcher)),
71 sqltypes.AlwaysFalse(userACLMatcher(matcher)),
72 )
73
74 return matcher
75}
76
77func chatBaseConverter() *sqltypes.VariableConverter {
78 return sqltypes.NewVariableConverter().RegisterMatcher(

Callers 1

ConfigChatsFunction · 0.92

Calls 5

AlwaysFalseFunction · 0.92
chatBaseConverterFunction · 0.85
groupACLMatcherFunction · 0.85
userACLMatcherFunction · 0.85
RegisterMatcherMethod · 0.80

Tested by

no test coverage detected