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
11 changes: 8 additions & 3 deletions app/views/users/profile.html.erb
Expand Up @@ -233,11 +233,16 @@
</div>
</div>
<% end %>
<% if !Rails.env.production?%>

<% if @profile_user && current_user && @profile_user == current_user %>

<%= form_tag "/users/test_digest_email", method: :post do %>
<%= submit_tag "Test Digest Email" %>
<% end %>

<% if @profile_user && current_user && @profile_user == current_user %>
<%= form_tag "/users/test_digest_email", method: :post do %>
<%= submit_tag "Test Digest Email" %>
<% end %>

<% end %>
sashadev-sky marked this conversation as resolved.
Show resolved Hide resolved

<hr />
Expand Down