We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in core_enforcer.py def load_policy(self): """reloads the policy from file/database.""" need_to_rebuild = False new_model = copy.copy(self.model) new_model.clear_policy()
new_model.clear_policy() will change the policy in self.model, becourse it's a shallow copy
The text was updated successfully, but these errors were encountered:
@techoner @Nekotoxin
Sorry, something went wrong.
@leeqvip @Xhy-5000
hsluoyz
Successfully merging a pull request may close this issue.
in core_enforcer.py
def load_policy(self):
"""reloads the policy from file/database."""
need_to_rebuild = False
new_model = copy.copy(self.model)
new_model.clear_policy()
new_model.clear_policy() will change the policy in self.model, becourse it's a shallow copy
The text was updated successfully, but these errors were encountered: