diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-01-22 21:15:05 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-25 00:31:25 +0400 |
commit | ccf8fa4fa23c9d48350bd2ed53f4a86afcfd6655 (patch) | |
tree | ecbcd6e8eb0b3202554be852d6f5003fcd37438e /app/controllers/admin | |
parent | 4ce715a360b089f95bf8e2b37cf87ec237492fcc (diff) |
if project creator was remowed from Gitlab - creator is next admin, who edit this project
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/projects_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb index 7f88652cdab..711817395f1 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 |