summaryrefslogtreecommitdiffstats
path: root/app/helpers/versions_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/versions_helper.rb')
-rw-r--r--app/helpers/versions_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/versions_helper.rb b/app/helpers/versions_helper.rb
index 219ced3d3..36b1b511d 100644
--- a/app/helpers/versions_helper.rb
+++ b/app/helpers/versions_helper.rb
@@ -31,11 +31,11 @@ module VersionsHelper
options = {:fixed_version_id => version, :set_filter => 1}.merge(options)
project =
case version.sharing
- when 'hierarchy', 'tree'
- if version.project && version.project.root.visible?
+ when 'tree'
+ if version.project && version.project.root.visible? && User.current.allowed_to?(:view_issues, version.project.root)
version.project.root
else
- version.project
+ nil
end
when 'system'
nil