Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed test-digest-button for Users other than Admins and Moderators #4293

Merged
merged 12 commits into from
Dec 16, 2018
5 changes: 3 additions & 2 deletions app/views/users/profile.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,10 @@
</div>
<% end %>

<% if @profile_user && current_user && @profile_user == current_user %>
<% if @profile_user && current_user && current_user.can_moderate? && @profile_user == current_user %>
<br />
<%= form_tag "/users/test_digest_email", method: :post do %>
<%= submit_tag "Test Digest Email" %>
<%= submit_tag "Test Digest Email", class: "btn btn-info", style: "width: 100%;" %>
<% end %>
<% end %>

Expand Down