diff options
author | James Lopez <james@jameslopez.es> | 2016-08-29 10:46:05 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-10-03 11:53:18 +0300 |
commit | a09e1d3dda57323d8932b498a711928c98404005 (patch) | |
tree | 4e85059dd638a59ae80c25db01aa5415c7727bf3 /app/controllers/import | |
parent | 7134599860651cc0f502581c97853a26f2fb4471 (diff) |
Enable import/export back for non-admins
Diffstat (limited to 'app/controllers/import')
-rw-r--r-- | app/controllers/import/gitlab_projects_controller.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/import/gitlab_projects_controller.rb b/app/controllers/import/gitlab_projects_controller.rb index 7d0eff37635..3ec173abcdb 100644 --- a/app/controllers/import/gitlab_projects_controller.rb +++ b/app/controllers/import/gitlab_projects_controller.rb @@ -1,6 +1,5 @@ class Import::GitlabProjectsController < Import::BaseController before_action :verify_gitlab_project_import_enabled - before_action :authenticate_admin! def new @namespace_id = project_params[:namespace_id] @@ -48,8 +47,4 @@ class Import::GitlabProjectsController < Import::BaseController :path, :namespace_id, :file ) end - - def authenticate_admin! - render_404 unless current_user.is_admin? - end end |