diff --git a/authentik/policies/engine.py b/authentik/policies/engine.py index d15852a84..95deb52ef 100644 --- a/authentik/policies/engine.py +++ b/authentik/policies/engine.py @@ -56,6 +56,7 @@ class PolicyEngine: raise ValueError(f"{pbm} is not instance of PolicyBindingModel") self.__pbm = pbm self.request = PolicyRequest(user) + self.request.obj = pbm if request: self.request.http_request = request self.__cached_policies = []