Commit c37a8585 by 朱继来

Merge branch 'zjl_adjust_check_0125' into 'master'

统计添加权限菜单

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