修复:如果不存在权限判断中的菜单 则默认所有人有权限

This commit is contained in:
wuhui_zzw 2023-12-08 18:26:20 +08:00
parent d45597e240
commit 5796e5e96e
1 changed files with 3 additions and 3 deletions

View File

@ -42,9 +42,9 @@ class PermissionService
*/ */
public static function can($item) public static function can($item)
{ {
/*if(!$item){ if(!$item){
return false; return true;
}*/ }
if (\Yunshop::isPHPUnit()) { if (\Yunshop::isPHPUnit()) {
return true; return true;
} }