Skip to content

Commit 6b18e9f

Browse files
authored
Merge pull request #3 from gtt-project/fix/redmine42-projects-controller-patch
Updated projects controller patch for Redmine4.2
2 parents 66915b7 + 8214b7e commit 6b18e9f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/redmine_privacy/patches/projects_controller_patch.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ def self.apply
1010
def respond_to(*_, &block)
1111
if params[:action] == 'show'
1212
# having no users effectively hides the project members box
13-
@users_by_role = []
13+
if Redmine::VERSION.to_a[0] >= 4 && Redmine::VERSION.to_a[1] >= 2
14+
@principals_by_role = []
15+
else
16+
@users_by_role = []
17+
end
1418
end
1519
super(*_, &block)
1620
end

0 commit comments

Comments
 (0)