OSDN Git Service

Dont show remove user button for ldap user
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tue, 3 Sep 2013 20:58:42 +0000 (23:58 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Tue, 3 Sep 2013 20:58:42 +0000 (23:58 +0300)
app/views/profiles/account.html.haml

index d711d55..42214a1 100644 (file)
@@ -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