diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2019-01-17 15:21:37 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2019-01-17 15:21:37 +0200 |
commit | 1a93b2312fce518eccce6b26b08f0f926b15da31 (patch) | |
tree | 4a23b3e5656982a9abc365de453df1e5967eba52 /app | |
parent | af70d985ca69ecb442bac47b7681f48ddb32732e (diff) | |
download | gitlab-ce-1a93b2312fce518eccce6b26b08f0f926b15da31.tar.gz |
Backport github import fix from EE
For codebase consistency
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/import/github_controller.rb | 6 |
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 |