summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/import/github_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/import/github_controller.rb b/app/controllers/import/github_controller.rb
index ec38d3b8386..34c7dbdc2fe 100644
--- a/app/controllers/import/github_controller.rb
+++ b/app/controllers/import/github_controller.rb
@@ -51,7 +51,11 @@ class Import::GithubController < Import::BaseController
private
def import_params
- params.permit(:repo_id, :new_name, :target_namespace)
+ params.permit(permitted_import_params)
+ end
+
+ def permitted_import_params
+ [:repo_id, :new_name, :target_namespace]
end
def client