Defect #32860 » fix_link_to_version.patch
app/helpers/versions_helper.rb | ||
---|---|---|
31 | 31 |
options = {:fixed_version_id => version, :set_filter => 1}.merge(options) |
32 | 32 |
project = |
33 | 33 |
case version.sharing |
34 |
when 'hierarchy', 'tree'
|
|
35 |
if version.project && version.project.root.visible? |
|
34 |
when 'tree' |
|
35 |
if version.project && version.project.root.visible? && User.current.allowed_to?(:view_issues, version.project.root)
|
|
36 | 36 |
version.project.root |
37 | 37 |
else |
38 |
version.project
|
|
38 |
nil
|
|
39 | 39 |
end |
40 | 40 |
when 'system' |
41 | 41 |
nil |