Browse Source

新粉月销售额梯形图报表菜单权限

shensong 4 years ago
parent
commit
2d4fe6488e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Admin/StatisticsController.php

+ 1 - 1
app/Http/Controllers/Admin/StatisticsController.php

@@ -5700,7 +5700,7 @@ class StatisticsController extends Controller
5700 5700
         $self_role = session('role_name');
5701 5701
 
5702 5702
         #销售和审核人员只能看自己团队的
5703
-        if($self_role == '管理员' || $role_id == '销售'){
5703
+        if($self_role == '管理员' || $self_role == '销售'){
5704 5704
             $self_id = session('admin_id');
5705 5705
             $team_id = DB::table('admin')->where('id', $self_id)->pluck('team_id');
5706 5706
         }