Commit cdc4d64da6fc6fbb6c3b78c5e07cdddd91a4c900
1 parent
7dfb2b63
Exists in
master
and in
4 other branches
Dont show remove user button for ldap user
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/profiles/account.html.haml
| @@ -86,7 +86,7 @@ | @@ -86,7 +86,7 @@ | ||
| 86 | .controls | 86 | .controls |
| 87 | = f.submit 'Save username', class: "btn btn-save" | 87 | = f.submit 'Save username', class: "btn btn-save" |
| 88 | 88 | ||
| 89 | -- if gitlab_config.signup_enabled | 89 | +- if gitlab_config.signup_enabled && !current_user.ldap_user? |
| 90 | %fieldset.remove-account | 90 | %fieldset.remove-account |
| 91 | %legend | 91 | %legend |
| 92 | Remove account | 92 | Remove account |