From ccf8fa4fa23c9d48350bd2ed53f4a86afcfd6655 Mon Sep 17 00:00:00 2001 From: Andrey Kumanyaev Date: Tue, 22 Jan 2013 21:15:05 +0400 Subject: [PATCH] if project creator was remowed from Gitlab - creator is next admin, who edit this project --- app/controllers/admin/projects_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb index 7f88652c..71181739 100644 --- a/app/controllers/admin/projects_controller.rb +++ b/app/controllers/admin/projects_controller.rb @@ -29,6 +29,8 @@ class Admin::ProjectsController < Admin::ApplicationController end def update + project.creator = current_user unless project.creator + status = ::Projects::UpdateContext.new(project, current_user, params).execute(:admin) if status