Skip to content

Commit

Permalink
[IMP] base_tier_validation: use sudo to post message
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Oct 22, 2023
1 parent 2f78a9a commit 3c5d1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_tier_validation/models/tier_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def _notify_review_requested(self, tier_reviews):
subscribe = "message_subscribe"
post = "message_post"
if hasattr(self, post) and hasattr(self, subscribe):
for rec in self:
for rec in self.sudo():
users_to_notify = tier_reviews.filtered(
lambda r: r.definition_id.notify_on_create and r.res_id == rec.id
).mapped("reviewer_ids")
Expand Down

0 comments on commit 3c5d1ce

Please sign in to comment.