commit compras2 3011
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-30 23:04:25 +02:00
parent 318b62f458
commit c9bd6db90b
39 changed files with 2235 additions and 42 deletions
@@ -32,7 +32,7 @@ class OrderCancellationController extends Controller
{
$actor = $this->actor($request);
$focus = $request->validate(['cancellation_id' => 'nullable|integer|min:1'])['cancellation_id'] ?? null;
abort_unless($actor->hasFunctions(['admin', 'procurement', 'finance', 'requester', 'department_head']), 403);
abort_unless($workflow->canView($actor), 403);
return DB::transaction(function () use ($request, $actor, $workflow, $focus) {
if (DB::getDriverName() === 'pgsql' && DB::transactionLevel() === 1) {