fixed issue评论附件权限

This commit is contained in:
“xxq250” 2022-10-17 10:13:30 +08:00
parent fce8166ba7
commit 620ddff9bb
1 changed files with 261 additions and 261 deletions

View File

@ -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