Closed thoraj closed 2 years ago
@sagilio @xcaptain @huazhikui
When deleting policies, it is necessary to ensure that each policy can be found in the model.
Can you post the value of g2Policies
and all g2
policies? The sample code should return success.
The method may return false
at line 299 and 318.
Seems like line 318 is unreachable code since model.RemovePolicies() either throws or returns true. That leaves line 199.
Not exactly sure why this was biting me, but I worked around this by using _enforcer.RemoveFilteredNamedGroupingPolicyAsync()
I'm having trouble removing policies.
This section of our code throws:
The docs says something about consistent policies:
Could our issues be related to this?
What does it mean that
-- rules are consistent with the current policy
?