xbackend/utils/casbin/persist/adapters/update_adapter.py
2021-05-15 15:38:02 +08:00

9 lines
322 B
Python

class UpdateAdapter:
""" UpdateAdapter is the interface for Casbin adapters with add update policy function. """
def update_policy(self, sec, ptype, old_rule, new_policy):
"""
update_policy updates a policy rule from storage.
This is part of the Auto-Save feature.
"""
pass