Commit e83b960f authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Skip verify_authenticity_token for WH uploads

parent 02e66fc3
......@@ -6,7 +6,7 @@ class Import::GitlabProjectsController < Import::BaseController
before_action :whitelist_query_limiting, only: [:create]
before_action :verify_gitlab_project_import_enabled
skip_before_action :authenticate_user!, only: [:authorize, :create]
skip_before_action :verify_authenticity_token, only: [:authorize]
before_action :verify_workhorse_api!, only: [:authorize]
def new
......@@ -33,7 +33,6 @@ class Import::GitlabProjectsController < Import::BaseController
end
end
# TODO: include UploadsActions?
def authorize
set_workhorse_internal_api_content_type
......
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