summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-25 10:48:30 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-25 10:48:30 +0200
commite292d7c17b48182f7f8df20d93b92e8ba9e98ce6 (patch)
treee55825c995795b79bb83083defd8ebb8eacd049c /app/controllers
parentff35b37fd2df3b4bdcb9f1b7448d98df07237d08 (diff)
downloadgitlab-ce-e292d7c17b48182f7f8df20d93b92e8ba9e98ce6.tar.gz
Make transfer action in project controller
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index f2718344a3d..5b17e1ab2cd 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -4,7 +4,7 @@ class ProjectsController < ProjectResourceController
# Authorize
before_filter :authorize_read_project!, except: [:index, :new, :create]
- before_filter :authorize_admin_project!, only: [:edit, :update, :destroy]
+ before_filter :authorize_admin_project!, only: [:edit, :update, :destroy, :transfer]
before_filter :require_non_empty_project, only: [:blob, :tree, :graph]
layout 'application', only: [:new, :create]
@@ -45,10 +45,10 @@ class ProjectsController < ProjectResourceController
format.js
end
end
+ end
- rescue Project::TransferError => ex
- @error = ex
- render :update_failed
+ def transfer
+ ::Projects::TransferContext.new(project, current_user, params).execute
end
def show