MCPcopy Index your code
hub / github.com/apache/casbin / BuildRoleLinks

Method BuildRoleLinks

enforcer_synced.go:184–188  ·  view source on GitHub ↗

BuildRoleLinks manually rebuild the role inheritance relations.

()

Source from the content-addressed store, hash-verified

182
183// BuildRoleLinks manually rebuild the role inheritance relations.
184func (e *SyncedEnforcer) BuildRoleLinks() error {
185 e.m.Lock()
186 defer e.m.Unlock()
187 return e.Enforcer.BuildRoleLinks()
188}
189
190// Enforce decides whether a "subject" can access a "object" with the operation "action", input parameters are usually: (sub, obj, act).
191func (e *SyncedEnforcer) Enforce(rvals ...interface{}) (bool, error) {

Callers

nothing calls this directly

Calls 1

BuildRoleLinksMethod · 0.65

Tested by

no test coverage detected