Skip to content

Do not allow removal of a project owner user.

Created by: dosire

If a user owns a project it should not be possible to delete the user. Doing so will cause the project to have no owner and lead to errors. The user should be blocked instead.

This fixes the following bug:

  1. Make a user.
  2. Make a project as this user (user is the owner of the project).
  3. Delete the user.
  4. Try to delete the project => NoMethodError because it the user is nil and it can't find its name.

Merge request reports