Skip to content

Commit

Permalink
Merge pull request #2 from next-l/i1551-password-change-page
Browse files Browse the repository at this point in the history
disable password change page if registerable module is disabled
  • Loading branch information
nabeta committed May 8, 2021
2 parents e138daa + fa3ce0b commit b86ce3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/my_accounts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<% end %>
<ul>
<li><%= link_to t('page.edit'), edit_my_account_path -%></li>
<% if devise_mapping.registerable? %>
<% if User.devise_modules.include?(:registerable) %>
<li><%= link_to t('activerecord.models.registration'), edit_user_registration_path -%></li>
<% end %>
<%- if policy(@profile).destroy? -%>
Expand Down

0 comments on commit b86ce3f

Please sign in to comment.