From 9d34384bc9d619682fd1703a0cf5c099b93b1d49 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Fri, 31 Aug 2018 12:56:34 +0200 Subject: [PATCH] user: forbid manage of emails for external accounts. - e.g LDAP accounts shouldn't allow to add additional emails. --- rhodecode/templates/admin/my_account/my_account_emails.mako | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rhodecode/templates/admin/my_account/my_account_emails.mako b/rhodecode/templates/admin/my_account/my_account_emails.mako index 7f7f3b64..61f7b02d 100644 --- a/rhodecode/templates/admin/my_account/my_account_emails.mako +++ b/rhodecode/templates/admin/my_account/my_account_emails.mako @@ -47,8 +47,14 @@ + % if c.user.extern_type != 'rhodecode': +

${_('Your user account details are managed by an external source. Details cannot be managed here.')} +
${_('Source type')}: ${c.user.extern_type} +

+ % else:
${c.form.render() | n}
+ % endif