From cdc4d64da6fc6fbb6c3b78c5e07cdddd91a4c900 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 3 Sep 2013 23:58:42 +0300 Subject: [PATCH] Dont show remove user button for ldap user --- app/views/profiles/account.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/profiles/account.html.haml b/app/views/profiles/account.html.haml index d711d55..42214a1 100644 --- a/app/views/profiles/account.html.haml +++ b/app/views/profiles/account.html.haml @@ -86,7 +86,7 @@ .controls = f.submit 'Save username', class: "btn btn-save" -- if gitlab_config.signup_enabled +- if gitlab_config.signup_enabled && !current_user.ldap_user? %fieldset.remove-account %legend Remove account -- libgit2 0.21.2