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

Method RemoveFilteredPolicy

management_api.go:321–323  ·  view source on GitHub ↗

RemoveFilteredPolicy removes an authorization rule from the current policy, field filters can be specified.

(fieldIndex int, fieldValues ...string)

Source from the content-addressed store, hash-verified

319
320// RemoveFilteredPolicy removes an authorization rule from the current policy, field filters can be specified.
321func (e *Enforcer) RemoveFilteredPolicy(fieldIndex int, fieldValues ...string) (bool, error) {
322 return e.RemoveFilteredNamedPolicy("p", fieldIndex, fieldValues...)
323}
324
325// RemoveNamedPolicy removes an authorization rule from the current named policy.
326func (e *Enforcer) RemoveNamedPolicy(ptype string, params ...interface{}) (bool, error) {

Callers 9

TestSetWatcherExFunction · 0.95
TestModifyPolicyAPIFunction · 0.95
DeleteUserMethod · 0.95
DeleteRoleMethod · 0.95
DeletePermissionMethod · 0.95
TestMockAdapterErrorsFunction · 0.95

Calls 1

Tested by 5

TestSetWatcherExFunction · 0.76
TestModifyPolicyAPIFunction · 0.76
TestMockAdapterErrorsFunction · 0.76