policies: fix obj not being set
This commit is contained in:
parent
3584bdf530
commit
68b9c34f78
|
@ -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 = []
|
||||
|
|
Reference in New Issue