commit compras2 2811
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-28 15:45:52 +02:00
parent eb32c74c56
commit 060c119ba1
92 changed files with 4936 additions and 43 deletions
@@ -3,6 +3,7 @@
namespace App\Http\Middleware;
use App\Models\User;
use App\Services\OperationalOrders;
use App\Services\OrganizationAccess;
use App\Services\SupplierPayables;
use App\Services\WorkContext;
@@ -64,6 +65,8 @@ class HandleInertiaRequests extends Middleware
],
'payablesAvailable' => $actor !== null && app(SupplierPayables::class)->can($actor, 'view'),
'orderCancellationAvailable' => $actor !== null && (bool) config('order_cancellation.enabled') && Schema::hasTable('order_cancellations'),
'operationalOrdersAvailable' => $actor !== null && app(OperationalOrders::class)->ready(),
'privateAuditAvailable' => $actor !== null && app(\App\Services\PrivateAuditAccess::class)->ready(),
'sidebarOpen' => ! $request->hasCookie('sidebar_state') || $request->cookie('sidebar_state') === 'true',
];
}