mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 18:25:56 +08:00
Merge branch 'pre_trustie_server' into trustie_server
# Conflicts: # app/models/issue.rb # app/models/journal.rb
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user