Project

General

Profile

Patch #35031 » 0002-Remove-Project-members_by_role.patch

Go MAEDA, 2021-04-04 17:52

View differences:

app/models/project.rb
557 557
    end
558 558
  end
559 559

  
560
  # TODO: Remove this method in Redmine 5.0
561
  def members_by_role
562
    ActiveSupport::Deprecation.warn(
563
      "Project#members_by_role will be removed. Use Project#principals_by_role instead."
564
    )
565
    principals_by_role
566
  end
567

  
568 560
  # Adds user as a project member with the default role
569 561
  # Used for when a non-admin user creates a project
570 562
  def add_default_member(user)
(2-2/2)