SelfRemoveFilteredPolicyCtx removes policy rules that match the filter from the current policy with context.
(ctx context.Context, sec string, ptype string, fieldIndex int, fieldValues ...string)
| 396 | |
| 397 | // SelfRemoveFilteredPolicyCtx removes policy rules that match the filter from the current policy with context. |
| 398 | func (e *ContextEnforcer) SelfRemoveFilteredPolicyCtx(ctx context.Context, sec string, ptype string, fieldIndex int, fieldValues ...string) (bool, error) { |
| 399 | return e.removeFilteredPolicyWithoutNotifyCtx(ctx, sec, ptype, fieldIndex, fieldValues) |
| 400 | } |
| 401 | |
| 402 | // SelfUpdatePolicyCtx updates a policy rule in the current policy with context. |
| 403 | func (e *ContextEnforcer) SelfUpdatePolicyCtx(ctx context.Context, sec string, ptype string, oldRule, newRule []string) (bool, error) { |
nothing calls this directly
no test coverage detected