From 48eb27c8af71c7c8c31e54899472c7248b0425a0 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq.com> Date: Tue, 12 May 2026 14:17:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=8F=9C=E5=8D=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=AF=B7=E6=B1=82=E6=9D=83=E9=99=9011?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Middleware/CheckPermission.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/Http/Middleware/CheckPermission.php b/app/Http/Middleware/CheckPermission.php index 2aea421..21780dd 100644 --- a/app/Http/Middleware/CheckPermission.php +++ b/app/Http/Middleware/CheckPermission.php @@ -65,13 +65,15 @@ class CheckPermission } } - // 特殊 - if (in_array($newAction, ['logout', 'me', 'menu'])) { + // 特殊1 + $special = ['logout', 'me', 'menu']; + if (in_array($newAction, $special)) { return false; } - // 特殊 - if (in_array($method, ['rule', 'uploadImage', 'search', 'targetMode'])) { + // 特殊2 + $special2 = ['rule', 'uploadImage', 'search', 'targetMode', 'buildingFloorList']; + if (in_array($method, $special2)) { return false; }