Commit 2fa9f520 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Do not show change password in the menu if user provider is not local

Refs: #2535
parent 48e1d007
......@@ -207,7 +207,7 @@ def get_menu(request, with_extra_links=False, with_signout=True):
l.append({ 'url': absolute(reverse('astakos.im.views.edit_profile')),
'name': "My account" })
if with_extra_links:
if user.has_usable_password():
if user.has_usable_password() and user.provider == 'local':
l.append({ 'url': absolute(reverse('password_change')),
'name': "Change password" })
if EMAILCHANGE_ENABLED:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment