Skip to content

Commit 1a93b23

Browse files
committed
Backport github import fix from EE
For codebase consistency Signed-off-by: Dmitriy Zaporozhets <[email protected]>
1 parent af70d98 commit 1a93b23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/controllers/import/github_controller.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ def create
5151
private
5252

5353
def import_params
54-
params.permit(:repo_id, :new_name, :target_namespace)
54+
params.permit(permitted_import_params)
55+
end
56+
57+
def permitted_import_params
58+
[:repo_id, :new_name, :target_namespace]
5559
end
5660

5761
def client

0 commit comments

Comments
 (0)