MCPcopy
hub / github.com/apache/casbin / RemoveFilteredGroupingPolicy

Method RemoveFilteredGroupingPolicy

management_api.go:433–435  ·  view source on GitHub ↗

RemoveFilteredGroupingPolicy removes a role inheritance rule from the current policy, field filters can be specified.

(fieldIndex int, fieldValues ...string)

Source from the content-addressed store, hash-verified

431
432// RemoveFilteredGroupingPolicy removes a role inheritance rule from the current policy, field filters can be specified.
433func (e *Enforcer) RemoveFilteredGroupingPolicy(fieldIndex int, fieldValues ...string) (bool, error) {
434 return e.RemoveFilteredNamedGroupingPolicy("g", fieldIndex, fieldValues...)
435}
436
437// RemoveNamedGroupingPolicy removes a role inheritance rule from the current named policy.
438func (e *Enforcer) RemoveNamedGroupingPolicy(ptype string, params ...interface{}) (bool, error) {

Callers 6

TestSetWatcherExFunction · 0.95
DeleteRolesForUserMethod · 0.95
DeleteUserMethod · 0.95
DeleteRoleMethod · 0.95
TestMockAdapterErrorsFunction · 0.95

Tested by 3

TestSetWatcherExFunction · 0.76
TestMockAdapterErrorsFunction · 0.76