Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Thomas <iamgeorgethomas@gmail.com>2018-08-27 18:05:38 +0300
committerGeorge Thomas <iamgeorgethomas@gmail.com>2018-08-31 20:05:56 +0300
commit9dcbeca88955a02358b507730931e390dcfc63af (patch)
treeae98d4b39e18184eb3a34635dba52ca1c4608ce2 /app/helpers/button_helper.rb
parent472f2d566633df6c1dee1f703b06958b9a0a2cd8 (diff)
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.rb2
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