Commit 659e5f5c by 杨树贤

权限问题

parent e002bacb
Showing with 2 additions and 2 deletions
......@@ -33,7 +33,7 @@ class Permission
$menus = !in_array($request->user->userId, $permData['admin_group']) ?
$this->menu($menuData, $request->user->userId) : $menuData;
if (empty($menus)) {
return '没有访问权限';
echo '没有访问权限';
}
$request->menus = $menus;
......@@ -47,7 +47,7 @@ class Permission
if ($isApi) {
return '没有权限';
}
return '没有访问权限';
echo '没有访问权限';
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment