Skip to content

Commit

Permalink
Can't edit an unsubscribed alert. Fixes #1747
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Feb 1, 2024
1 parent 3d105fc commit c194cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/policies/alert_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create?

sig { returns(T::Boolean) }
def update?
alert.user_id == user.id
alert.user_id == user.id && !alert.unsubscribed?
end

sig { returns(T::Boolean) }
Expand Down

0 comments on commit c194cad

Please sign in to comment.