diff --git a/app/views/projects/_form_0.html.erb b/app/views/projects/_form_0.html.erb
index 4e08fd8ea..d285c4d7f 100644
--- a/app/views/projects/_form_0.html.erb
+++ b/app/views/projects/_form_0.html.erb
@@ -319,7 +319,8 @@
hide_label: true, class:"form-control",
placeholder: nil,
spellcheck: false,
- disabled: is_disabled %>
+ disabled: is_disabled %>
+ If changed, consider adding the old owner to additional rights list.
<% end %>
diff --git a/test/controllers/projects_controller_test.rb b/test/controllers/projects_controller_test.rb
index abeef4727..c8fff28c1 100644
--- a/test/controllers/projects_controller_test.rb
+++ b/test/controllers/projects_controller_test.rb
@@ -593,6 +593,11 @@ def only_correct_criteria_selectable(level)
log_in_as(@admin)
old_user = @project.user
assert_not_equal @admin.id, old_user.id
+ # We SHOULD see the option to change the owner id
+ get "/en/projects/#{@project.id}/edit"
+ assert_response :success
+ assert_includes @response.body, 'New owner id'
+ # Let's ensure we CAN change it.
# Admin will own this project after this instruction.
patch "/en/projects/#{@project.id}", params: {
project: { user_id: @admin.id }
@@ -608,6 +613,11 @@ def only_correct_criteria_selectable(level)
# Verify test setup - @project is owned by @user
assert_equal @project.user_id, @user.id
log_in_as(@user)
+ # We should NOT see the option to change the owner id
+ get "/en/projects/#{@project.id}/edit"
+ assert_response :success
+ assert_not_includes @response.body, 'New owner id'
+ # Let's ensure we can't change it.
patch "/en/projects/#{@project.id}", params: {
project: { user_id: @admin.id }
}