Skip to content

Commit

Permalink
Update tokenTap/validators.py
Browse files Browse the repository at this point in the history
Co-authored-by: pooya <[email protected]>
  • Loading branch information
alimaktabi and PooyaFekri authored Aug 26, 2024
1 parent ada5b19 commit ee944e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tokenTap/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def check_user_permissions(self, raise_exception=True):
result = dict()
for c in self.td.constraints.all():
constraint: ConstraintVerification = get_constraint(c.name)(
self.user_profile, {"request_context": self.request_context}
self.user_profile,
context={"request_context": self.request_context}
)
constraint.response = c.response
try:
Expand Down

0 comments on commit ee944e1

Please sign in to comment.