if project creator was remowed from Gitlab - creator is next admin, who edit this project
This commit is contained in:
parent
4ce715a360
commit
ccf8fa4fa2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue