We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0803b07 commit 1873c1dCopy full SHA for 1873c1d
lib/redmine_git_hosting/patches/project_patch.rb
@@ -47,13 +47,7 @@ def groups_available
47
48
49
def get_members_available(klass)
50
- scope = old_redmine_version? ? member_principals : memberships.active
51
- scope.map(&:principal).select { |m| m.class.name == klass }.uniq.sort
52
- end
53
-
54
55
- def old_redmine_version?
56
- Redmine::VERSION::MAJOR < 3 || (Redmine::VERSION::MAJOR <= 3 && Redmine::VERSION::MINOR == 0)
+ memberships.active.map(&:principal).select { |m| m.class.name == klass }.uniq.sort
57
end
58
59
0 commit comments