RemoveFilteredPolicyCtx removes policy rules that match the filter from the storage with context.
(ctx context.Context, fieldIndex int, fieldValues ...string)
| 225 | |
| 226 | // RemoveFilteredPolicyCtx removes policy rules that match the filter from the storage with context. |
| 227 | func (e *ContextEnforcer) RemoveFilteredPolicyCtx(ctx context.Context, fieldIndex int, fieldValues ...string) (bool, error) { |
| 228 | return e.RemoveFilteredNamedPolicyCtx(ctx, "p", fieldIndex, fieldValues...) |
| 229 | } |
| 230 | |
| 231 | // RemoveFilteredNamedPolicyCtx removes named policy rules that match the filter from the storage with context. |
| 232 | func (e *ContextEnforcer) RemoveFilteredNamedPolicyCtx(ctx context.Context, ptype string, fieldIndex int, fieldValues ...string) (bool, error) { |
no test coverage detected