修复:如果不存在权限判断中的菜单 则默认所有人有权限
This commit is contained in:
parent
d45597e240
commit
5796e5e96e
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue