commit15
This commit is contained in:
@@ -50,8 +50,9 @@ final class ModuleNavigation
|
||||
// Company, unit and access configuration are explicitly general.
|
||||
public static function owner(string $path): ?string
|
||||
{
|
||||
if (preg_match('~^api/stock-read(/|$)~', $path)) return 'stock';
|
||||
if (preg_match('~^(supplier-payables|supplier-payments|api/(supplier-payables|supplier-payments|purchasing-budget))(/|$)~', $path)) return 'purchasing';
|
||||
if (preg_match('~^api/(workshop|workshop-billing|workshop-corrections)(/|$)~', $path)) return 'workshop';
|
||||
if (preg_match('~^api/(workshop|workshop-stock|workshop-billing|workshop-corrections)(/|$)~', $path)) return 'workshop';
|
||||
if (preg_match('~^api/(direct-costs|industrial-costs|industrial-budgets|service-receivables)(/|$)~', $path)) return 'finance';
|
||||
if (preg_match('~^api/(catalogue-accounting|service-fiscal)(/|$)~', $path)) return 'accounting';
|
||||
if (preg_match('~^api/(a|b1|service-invoices|service-calculations|document-preview|document-preparation)(/|$)~', $path)) return 'commercial';
|
||||
|
||||
Reference in New Issue
Block a user