summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew Blessing <drew@blessing.io>2017-08-28 16:42:19 +0000
committerDrew Blessing <drew@blessing.io>2017-08-28 16:42:19 +0000
commit031f32ca99ce6c78ca004fc2ee17cb1dcc0a0a10 (patch)
tree463730212dcf2c3948eac654592ec822f8c71981
parent3e0757f2d265e0ab3b13c5d27786ced901744c90 (diff)
downloadgitlab-ce-new_profile_nav_fix.tar.gz
New 'Password' profile nav option should use same conditional as old navnew_profile_nav_fix
-rw-r--r--app/views/layouts/nav/_new_profile_sidebar.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/nav/_new_profile_sidebar.html.haml b/app/views/layouts/nav/_new_profile_sidebar.html.haml
index 85b2c7630c8..2daa400f2d2 100644
--- a/app/views/layouts/nav/_new_profile_sidebar.html.haml
+++ b/app/views/layouts/nav/_new_profile_sidebar.html.haml
@@ -43,7 +43,7 @@
= custom_icon('emails')
%span.nav-item-name
Emails
- - unless current_user.ldap_user?
+ - if current_user.allow_password_authentication?
= nav_link(controller: :passwords) do
= link_to edit_profile_password_path, title: 'Password' do
.nav-icon-container