(sec string, ptype string, rule []string)
| 485 | } |
| 486 | |
| 487 | func (e *Enforcer) SelfAddPolicy(sec string, ptype string, rule []string) (bool, error) { |
| 488 | return e.addPolicyWithoutNotify(sec, ptype, rule) |
| 489 | } |
| 490 | |
| 491 | func (e *Enforcer) SelfAddPolicies(sec string, ptype string, rules [][]string) (bool, error) { |
| 492 | return e.addPoliciesWithoutNotify(sec, ptype, rules, false) |