EnableAutoSave controls whether to save a policy rule automatically to the adapter when it is added or removed.
(autoSave bool)
| 624 | |
| 625 | // EnableAutoSave controls whether to save a policy rule automatically to the adapter when it is added or removed. |
| 626 | func (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. |
| 631 | func (e *Enforcer) EnableAutoBuildRoleLinks(autoBuildRoleLinks bool) { |
no outgoing calls