summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authorHoratiu Eugen Vlad <horatiu@vlad.eu>2019-04-15 13:05:55 +0000
committerJames Lopez <james@gitlab.com>2019-04-15 13:05:55 +0000
commit0aa56d895dba21d3a01b78d35c445107e224ed0c (patch)
treef97e1d6d289af84b5838db149a9208ae0f70b267 /app/controllers/projects
parent922fae29ca100e7f7f30fcb62541305994430779 (diff)
downloadgitlab-ce-0aa56d895dba21d3a01b78d35c445107e224ed0c.tar.gz
Added write_repository scope for personal access token
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/git_http_client_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/git_http_client_controller.rb b/app/controllers/projects/git_http_client_controller.rb
index 85628dd32d8..7a80da53025 100644
--- a/app/controllers/projects/git_http_client_controller.rb
+++ b/app/controllers/projects/git_http_client_controller.rb
@@ -83,7 +83,7 @@ class Projects::GitHttpClientController < Projects::ApplicationController
def render_missing_personal_access_token
render plain: "HTTP Basic: Access denied\n" \
- "You must use a personal access token with 'api' scope for Git over HTTP.\n" \
+ "You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.\n" \
"You can generate one at #{profile_personal_access_tokens_url}",
status: :unauthorized
end