Fixed #14495 - Allow user_id to be passed to limit to only specific admins

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-03-26 14:45:20 +00:00
parent f450cafe3e
commit 3ced85080a

View file

@ -45,6 +45,10 @@ class ReportsController extends Controller
$actionlogs = $actionlogs->where('action_type', '=', $request->input('action_type'))->orderBy('created_at', 'desc');
}
if ($request->filled('user_id')) {
$actionlogs = $actionlogs->where('user_id', '=', $request->input('user_id'));
}
if ($request->filled('action_source')) {
$actionlogs = $actionlogs->where('action_source', '=', $request->input('action_source'))->orderBy('created_at', 'desc');
}