generated from liutk/owl-admin-base
Update
parent
07f05afecc
commit
37d895902e
|
|
@ -154,9 +154,12 @@ class StatisticsController extends Controller
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/** @var \App\Models\Employee */
|
||||||
|
$user = $request->user();
|
||||||
|
|
||||||
$input = $this->filterInput($request);
|
$input = $this->filterInput($request);
|
||||||
|
|
||||||
return $statisticService->storeRanking($input, 10);
|
return $statisticService->storeRanking($input, $user?->isAdministrator() ? 0 : 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue