Commit ccf8fa4fa23c9d48350bd2ed53f4a86afcfd6655
Committed by
Dmitriy Zaporozhets
1 parent
4ce715a3
Exists in
master
and in
4 other branches
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,6 +29,8 @@ class Admin::ProjectsController < Admin::ApplicationController | ||
| 29 | end | 29 | end |
| 30 | 30 | ||
| 31 | def update | 31 | def update |
| 32 | + project.creator = current_user unless project.creator | ||
| 33 | + | ||
| 32 | status = ::Projects::UpdateContext.new(project, current_user, params).execute(:admin) | 34 | status = ::Projects::UpdateContext.new(project, current_user, params).execute(:admin) |
| 33 | 35 | ||
| 34 | if status | 36 | if status |