Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/2.5' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Oct 27, 2023
2 parents a9e72c9 + deddcf1 commit c915e03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions newsroom/users/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,10 @@ def check_permissions(self, doc, updates=None):
else [field for field in updates.keys() if updates[field] != doc.get(field) and field != "id"]
)

if request.url_rule and request.url_rule.rule:
if request.url_rule.rule in ["/reset_password/<token>", "/token/<token_type>"]:
return

if is_current_user_company_admin():
manager = get_user()
if doc.get("company") and doc["company"] == manager.get("company"):
Expand Down

0 comments on commit c915e03

Please sign in to comment.