diff options
author | George Thomas <iamgeorgethomas@gmail.com> | 2018-08-27 20:35:38 +0530 |
---|---|---|
committer | George Thomas <iamgeorgethomas@gmail.com> | 2018-08-31 22:35:56 +0530 |
commit | 9dcbeca88955a02358b507730931e390dcfc63af (patch) | |
tree | ae98d4b39e18184eb3a34635dba52ca1c4608ce2 /app/helpers/button_helper.rb | |
parent | 472f2d566633df6c1dee1f703b06958b9a0a2cd8 (diff) | |
download | gitlab-ce-9dcbeca88955a02358b507730931e390dcfc63af.tar.gz |
Hide PAT creation advice for HTTP clone if PAT exist
If the user has a active Personal Access Token, hide the help text that
appears when selecting the link for HTTP clone
Diffstat (limited to 'app/helpers/button_helper.rb')
-rw-r--r-- | app/helpers/button_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/button_helper.rb b/app/helpers/button_helper.rb index 7adc882bc47..26e3850a540 100644 --- a/app/helpers/button_helper.rb +++ b/app/helpers/button_helper.rb @@ -67,7 +67,7 @@ module ButtonHelper def http_dropdown_description(protocol) if current_user.try(:require_password_creation_for_git?) _("Set a password on your account to pull or push via %{protocol}.") % { protocol: protocol } - else + elsif current_user.try(:require_personal_access_token_creation_for_git_auth?) _("Create a personal access token on your account to pull or push via %{protocol}.") % { protocol: protocol } end end |