Skip to content

Commit

Permalink
Merge pull request #253 from ZeusWPI/fix/user-checkbox-mailinglist
Browse files Browse the repository at this point in the history
fix(templates): use right source to check for subscription state
  • Loading branch information
Tibo-Ulens authored May 11, 2023
2 parents d1e72ff + 6fdb6e4 commit 449bf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/users/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<div class="field">
<label for="subscribed_to_mailing_list" class="label">Subscribe to Mailing List</label>
{% if current_user.subscribed_to_mailing_list -%}
{% if user.subscribed_to_mailing_list -%}
<input name="subscribed_to_mailing_list" type="checkbox" id="subscribed_to_mailing_list" checked>
{% else -%}
<input name="subscribed_to_mailing_list" type="checkbox" id="subscribed_to_mailing_list">
Expand Down

0 comments on commit 449bf55

Please sign in to comment.