main
Jing Li 2024-07-23 17:06:30 +08:00
parent 07f05afecc
commit 37d895902e
1 changed files with 4 additions and 1 deletions

View File

@ -154,9 +154,12 @@ class StatisticsController extends Controller
],
);
/** @var \App\Models\Employee */
$user = $request->user();
$input = $this->filterInput($request);
return $statisticService->storeRanking($input, 10);
return $statisticService->storeRanking($input, $user?->isAdministrator() ? 0 : 10);
}
/**