EnforceEx explain enforcement by informing matched rules.
(rvals ...interface{})
| 935 | |
| 936 | // EnforceEx explain enforcement by informing matched rules. |
| 937 | func (e *Enforcer) EnforceEx(rvals ...interface{}) (bool, []string, error) { |
| 938 | explain := []string{} |
| 939 | result, err := e.enforce("", &explain, rvals...) |
| 940 | return result, explain, err |
| 941 | } |
| 942 | |
| 943 | // EnforceExWithMatcher use a custom matcher and explain enforcement by informing matched rules. |
| 944 | func (e *Enforcer) EnforceExWithMatcher(matcher string, rvals ...interface{}) (bool, []string, error) { |