Skip to content

Commit

Permalink
Revert "Add check that user can view feature before sending change no…
Browse files Browse the repository at this point in the history
…tificati…" (#4687)

This reverts commit acab78e.
  • Loading branch information
jrobbins authored Jan 10, 2025
1 parent d4d6716 commit 476e14f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internals/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,7 @@ def process_post_data(self, **kwargs):
# actually changes to it.
# Load feature directly from NDB so as to never get a stale cached copy.
fe = FeatureEntry.get_by_id(feature['id'])
user = users.User(email=triggering_user_email)
can_view_feature = permissions.can_view_feature(user, fe)

if fe and (is_update and len(changes) or not is_update) and can_view_feature:
if fe and (is_update and len(changes) or not is_update):
email_tasks = make_feature_changes_email(
fe, is_update=is_update, changes=changes,
triggering_user_email=triggering_user_email)
Expand Down

0 comments on commit 476e14f

Please sign in to comment.