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

Function equalACLLists

coderd/rbac/object.go:118–134  ·  view source on GitHub ↗
(a, b map[string][]policy.Action)

Source from the content-addressed store, hash-verified

116}
117
118func equalACLLists(a, b map[string][]policy.Action) bool {
119 if len(a) != len(b) {
120 return false
121 }
122
123 for k, actions := range a {
124 if len(actions) != len(b[k]) {
125 return false
126 }
127 for i, a := range actions {
128 if a != b[k][i] {
129 return false
130 }
131 }
132 }
133 return true
134}
135
136func (z Object) RBACObject() Object {
137 return z

Callers 1

EqualMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected