user: forbid manage of emails for external accounts.

- e.g LDAP accounts shouldn't allow to add additional emails.
This commit is contained in:
Marcin Kuzminski 2018-08-31 12:56:34 +02:00
parent 51215261f4
commit 9d34384bc9

View file

@ -47,8 +47,14 @@
</table>
</div>
% if c.user.extern_type != 'rhodecode':
<p>${_('Your user account details are managed by an external source. Details cannot be managed here.')}
<br/>${_('Source type')}: <strong>${c.user.extern_type}</strong>
</p>
% else:
<div>
${c.form.render() | n}
</div>
% endif
</div>
</div>