MCPcopy
hub / github.com/apache/casbin / EnableAutoBuildRoleLinks

Method EnableAutoBuildRoleLinks

enforcer.go:631–633  ·  view source on GitHub ↗

EnableAutoBuildRoleLinks controls whether to rebuild the role inheritance relations when a role is added or deleted.

(autoBuildRoleLinks bool)

Source from the content-addressed store, hash-verified

629
630// EnableAutoBuildRoleLinks controls whether to rebuild the role inheritance relations when a role is added or deleted.
631func (e *Enforcer) EnableAutoBuildRoleLinks(autoBuildRoleLinks bool) {
632 e.autoBuildRoleLinks = autoBuildRoleLinks
633}
634
635// EnableAcceptJsonRequest controls whether to accept json as a request parameter.
636func (e *Enforcer) EnableAcceptJsonRequest(acceptJsonRequest bool) {

Callers 4

TestRoleLinksFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestRoleLinksFunction · 0.76