|
|
|
@@ -224,6 +224,9 @@ class AttachmentsController < ApplicationController |
|
|
|
elsif @file.container.is_a?(Journal) |
|
|
|
project = @file.container.issue.project |
|
|
|
candown = project.is_public || (current_user.logged? && project.member?(current_user)) |
|
|
|
elsif @file.container.is_a?(Project) |
|
|
|
project = @file.container |
|
|
|
candown = project.is_public || (current_user.logged? && project.member?(current_user)) |
|
|
|
else |
|
|
|
project = nil |
|
|
|
end |
|
|
|
|