xbackend/utils/casbin/effect/effector.py
2021-05-15 15:38:02 +08:00

20 lines
423 B
Python

class Effector:
"""Effector is the interface for Casbin effectors."""
ALLOW = 0
INDETERMINATE = 1
DENY = 2
def intermediate_effect(self, effects):
""" returns a intermediate effect based on the matched effects of the enforcer """
pass
def final_effect(self, effects):
""" returns the final effect based on the matched effects of the enforcer """
pass