summaryrefslogtreecommitdiff
path: root/app/controllers/import/github_controller.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-01 12:17:40 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-01 12:17:40 +0000
commit5e98d2784081393aea84b6591116d905da6eb567 (patch)
treef18117de3f067c2511861c3d2343b7c951032dae /app/controllers/import/github_controller.rb
parent2655540094e856f3048fb737a19e4316d8264623 (diff)
downloadgitlab-ce-5e98d2784081393aea84b6591116d905da6eb567.tar.gz
Add latest changes from gitlab-org/security/gitlab@15-10-stable-ee
Diffstat (limited to 'app/controllers/import/github_controller.rb')
-rw-r--r--app/controllers/import/github_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/import/github_controller.rb b/app/controllers/import/github_controller.rb
index f0a80593926..ba355686bc3 100644
--- a/app/controllers/import/github_controller.rb
+++ b/app/controllers/import/github_controller.rb
@@ -61,7 +61,7 @@ class Import::GithubController < Import::BaseController
if params[:namespace_id].present?
@namespace = Namespace.find_by_id(params[:namespace_id])
- render_404 unless current_user.can?(:create_projects, @namespace)
+ render_404 unless current_user.can?(:import_projects, @namespace)
end
end
end