修复:如果不存在权限判断中的菜单 则默认所有人有权限
This commit is contained in:
parent
d45597e240
commit
5796e5e96e
|
|
@ -42,9 +42,9 @@ class PermissionService
|
|||
*/
|
||||
public static function can($item)
|
||||
{
|
||||
/*if(!$item){
|
||||
return false;
|
||||
}*/
|
||||
if(!$item){
|
||||
return true;
|
||||
}
|
||||
if (\Yunshop::isPHPUnit()) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue