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

Function convertSDKPerm

coderd/database/dbauthz/customroles_test.go:258–264  ·  view source on GitHub ↗
(perm codersdk.Permission)

Source from the content-addressed store, hash-verified

256}
257
258func convertSDKPerm(perm codersdk.Permission) database.CustomRolePermission {
259 return database.CustomRolePermission{
260 Negate: perm.Negate,
261 ResourceType: string(perm.ResourceType),
262 Action: policy.Action(perm.Action),
263 }
264}
265
266func TestSystemRoles(t *testing.T) {
267 t.Parallel()

Callers

nothing calls this directly

Calls 1

ActionTypeAlias · 0.92

Tested by

no test coverage detected