Commit ccf8fa4fa23c9d48350bd2ed53f4a86afcfd6655

Authored by Andrey Kumanyaev
Committed by Dmitriy Zaporozhets
1 parent 4ce715a3

if project creator was remowed from Gitlab - creator is next admin, who edit this project

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
app/controllers/admin/projects_controller.rb
... ... @@ -29,6 +29,8 @@ class Admin::ProjectsController < Admin::ApplicationController
29 29 end
30 30  
31 31 def update
  32 + project.creator = current_user unless project.creator
  33 +
32 34 status = ::Projects::UpdateContext.new(project, current_user, params).execute(:admin)
33 35  
34 36 if status
... ...