fixed issue评论附件权限
This commit is contained in:
parent
fce8166ba7
commit
620ddff9bb
|
@ -220,7 +220,7 @@ class AttachmentsController < ApplicationController
|
|||
candown = course.member?(current_user) || course.is_public
|
||||
elsif @file.container.is_a?(Journal)
|
||||
course = @file.container.issue.project
|
||||
candown = course.member?(current_user)
|
||||
candown = course.member?(current_user) || course.is_public
|
||||
else
|
||||
course = nil
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue