Commit ccf8fa4f authored by Andrey Kumanyaev's avatar Andrey Kumanyaev Committed by Dmitriy Zaporozhets

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

parent 4ce715a3
...@@ -29,6 +29,8 @@ class Admin::ProjectsController < Admin::ApplicationController ...@@ -29,6 +29,8 @@ class Admin::ProjectsController < Admin::ApplicationController
end end
def update def update
project.creator = current_user unless project.creator
status = ::Projects::UpdateContext.new(project, current_user, params).execute(:admin) status = ::Projects::UpdateContext.new(project, current_user, params).execute(:admin)
if status if status
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment