MCPcopy Index your code
hub / github.com/apache/casbin / RemoveFilteredPolicyCtx

Method RemoveFilteredPolicyCtx

enforcer_context.go:227–229  ·  view source on GitHub ↗

RemoveFilteredPolicyCtx removes policy rules that match the filter from the storage with context.

(ctx context.Context, fieldIndex int, fieldValues ...string)

Source from the content-addressed store, hash-verified

225
226// RemoveFilteredPolicyCtx removes policy rules that match the filter from the storage with context.
227func (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.
232func (e *ContextEnforcer) RemoveFilteredNamedPolicyCtx(ctx context.Context, ptype string, fieldIndex int, fieldValues ...string) (bool, error) {

Callers 4

DeleteUserCtxMethod · 0.95
DeleteRoleCtxMethod · 0.95
DeletePermissionCtxMethod · 0.95

Calls 1

Tested by

no test coverage detected