Commit d0494763 by 朱继来

统计添加权限菜单

parent aa48442e
Showing with 7 additions and 0 deletions
......@@ -8,6 +8,7 @@ use App\Http\Controllers\Controller;
use DB;
use Cookie;
use App\Http\Page;
use App\Http\Controllers\PermController;
function CheckActive($menus, &$arr, $url)
{
......@@ -86,6 +87,12 @@ Class OrderCountController extends Controller
if ($menuconfig && !($menus = json_decode($menuconfig->config_data)))
$menus = [];
$perm = new PermController;
// 获取权限菜单
if ($request->user->email != 'admin@ichunt.com' && $request->user->userId != 1000)
$menus = $perm->getPermMenu($request, $menus);
$data = [
'header' => $request->user->header,
'uri' => $uri,
......
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