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

Method Check

detector/detector.go:24–24  ·  view source on GitHub ↗

Check checks whether the current status of the passed-in RoleManager contains logical errors (e.g., cycles in role inheritance). param: rm RoleManager instance return: If an error is found, return a descriptive error; otherwise return nil.

(rm rbac.RoleManager)

Source from the content-addressed store, hash-verified

22 // param: rm RoleManager instance
23 // return: If an error is found, return a descriptive error; otherwise return nil.
24 Check(rm rbac.RoleManager) error
25}

Callers 1

RunDetectionsMethod · 0.65

Implementers 1

DefaultDetectordetector/default_detector.go

Calls

no outgoing calls

Tested by

no test coverage detected