Commit cdc4d64d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Dont show remove user button for ldap user

parent 7dfb2b63
......@@ -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
......
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