MCPcopy Create free account
hub / github.com/apache/casbin / EnableAutoSave

Method EnableAutoSave

enforcer.go:626–628  ·  view source on GitHub ↗

EnableAutoSave controls whether to save a policy rule automatically to the adapter when it is added or removed.

(autoSave bool)

Source from the content-addressed store, hash-verified

624
625// EnableAutoSave controls whether to save a policy rule automatically to the adapter when it is added or removed.
626func (e *Enforcer) EnableAutoSave(autoSave bool) {
627 e.autoSave = autoSave
628}
629
630// EnableAutoBuildRoleLinks controls whether to rebuild the role inheritance relations when a role is added or deleted.
631func (e *Enforcer) EnableAutoBuildRoleLinks(autoBuildRoleLinks bool) {

Callers 1

TestEnableAutoSaveFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestEnableAutoSaveFunction · 0.76