Browse Source

Temp: no dashboard measurements for ADMIN

Vijayakrishnan 4 năm trước cách đây
mục cha
commit
67604633ce
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/HomeController.php

+ 1 - 1
app/Http/Controllers/HomeController.php

@@ -243,7 +243,7 @@ class HomeController extends Controller
             ->count();
 
         // num measurements that need stamping
-        $keyNumbers['measurementsToBeStamped'] = count($this->performer()->pro->getMeasurements(true));
+        $keyNumbers['measurementsToBeStamped'] = ($this->performer()->pro->pro_type === 'ADMIN' ? '-' : count($this->performer()->pro->getMeasurements(true)));
 
         $reimbursement = [];
         $reimbursement["currentBalance"] =  $performer->pro->balance;