mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
fixed issue描述里的附件解析关联,增强附件访问权限控制
This commit is contained in:
@@ -23,7 +23,8 @@ class Api::V1::IssuesController < Api::V1::BaseController
|
||||
before_action :load_issue, only: [:show, :update, :destroy]
|
||||
before_action :check_issue_operate_permission, only: [:update, :destroy]
|
||||
|
||||
def show
|
||||
def show
|
||||
@issue.associate_attachment_container
|
||||
@user_permission = current_user.present? && current_user.logged? && (@project.member?(current_user) || current_user.admin? || @issue.user == current_user)
|
||||
end
|
||||
|
||||
|
||||
@@ -321,6 +321,7 @@ class IssuesController < ApplicationController
|
||||
@issue_user = @issue.user
|
||||
@issue_assign_to = @issue.get_assign_user
|
||||
@join_users = join_users(@issue)
|
||||
@issue.associate_attachment_container
|
||||
#总耗时
|
||||
# cost_time(@issue)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user