From 5796e5e96e9a9de76ed4a8027906abeaa264f2d5 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Fri, 8 Dec 2023 18:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E8=8F=9C=E5=8D=95=20=20=E5=88=99=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=89=80=E6=9C=89=E4=BA=BA=E6=9C=89=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/services/PermissionService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/common/services/PermissionService.php b/app/common/services/PermissionService.php index ad270331..9f9d2c2d 100644 --- a/app/common/services/PermissionService.php +++ b/app/common/services/PermissionService.php @@ -42,9 +42,9 @@ class PermissionService */ public static function can($item) { - /*if(!$item){ - return false; - }*/ + if(!$item){ + return true; + } if (\Yunshop::isPHPUnit()) { return true; }