mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
fixed issue评论附件权限
This commit is contained in:
@@ -220,7 +220,7 @@ class AttachmentsController < ApplicationController
|
|||||||
candown = course.member?(current_user) || course.is_public
|
candown = course.member?(current_user) || course.is_public
|
||||||
elsif @file.container.is_a?(Journal)
|
elsif @file.container.is_a?(Journal)
|
||||||
course = @file.container.issue.project
|
course = @file.container.issue.project
|
||||||
candown = course.member?(current_user)
|
candown = course.member?(current_user) || course.is_public
|
||||||
else
|
else
|
||||||
course = nil
|
course = nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user