From 28b8e15feabffb71973ecfbd70f2dc45f55c1c43 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 18 Oct 2023 13:59:54 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E8=AE=BE=E7=BD=AE=E9=9D=9E=E5=85=AC?= =?UTF-8?q?=E5=BC=80=E5=9B=BE=E7=89=87=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/attachments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index cedefd1fe..cfce8b7a7 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -229,7 +229,7 @@ class AttachmentsController < ApplicationController end tip_exception(403, "您没有权限进入") if project.present? && !candown end - tip_exception(403, "您没有权限查看") if project.present? && !candown if @file.is_public == 0 && author_id != current_user.id + tip_exception(403, "您没有权限查看") if @file.is_public == 0 && @file.author_id != current_user.id end end