fix: bypass invoice quota checks for super_admin in all upload and creation endpoints
This commit is contained in:
@@ -50,7 +50,9 @@ try {
|
||||
|
||||
try {
|
||||
// Check quota for each invoice (preventive)
|
||||
QuotaMiddleware::checkInvoiceQuota($tenantId);
|
||||
if ($decoded['role'] !== 'super_admin') {
|
||||
QuotaMiddleware::checkInvoiceQuota($tenantId);
|
||||
}
|
||||
|
||||
$invoiceData = [
|
||||
'id' => Database::generateUuid(),
|
||||
|
||||
Reference in New Issue
Block a user