EnableAutoBuildRoleLinks controls whether to rebuild the role inheritance relations when a role is added or deleted.
(autoBuildRoleLinks bool)
| 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) { |
| 632 | e.autoBuildRoleLinks = autoBuildRoleLinks |
| 633 | } |
| 634 | |
| 635 | // EnableAcceptJsonRequest controls whether to accept json as a request parameter. |
| 636 | func (e *Enforcer) EnableAcceptJsonRequest(acceptJsonRequest bool) { |
no outgoing calls