diff --git a/app/Utilities/SidebarPermissions.php b/app/Utilities/SidebarPermissions.php index 411a3065..cf73893d 100644 --- a/app/Utilities/SidebarPermissions.php +++ b/app/Utilities/SidebarPermissions.php @@ -421,10 +421,11 @@ class SidebarPermissions } } - if ($key === 'refunds') { + if ($key === 'refunds' || str_starts_with($key, 'refunds/refund-pending')) { $normalized[] = self::LEGACY_PAGE_KEYS['refunds/small-payment-work-orders']; $normalized[] = 'fee-ratio-monitoring/refund-pending'; $normalized[] = 'fee-ratio-monitoring/refund-pending/export-details'; + $normalized[] = 'fee-ratio-monitoring/cost-freight-anomaly'; } } diff --git a/tests/Feature/Settings/NavigationTest.php b/tests/Feature/Settings/NavigationTest.php index ce56d478..19c276b1 100644 --- a/tests/Feature/Settings/NavigationTest.php +++ b/tests/Feature/Settings/NavigationTest.php @@ -363,6 +363,10 @@ class NavigationTest extends FeatureTestCase 'fee-ratio-monitoring/refund-pending/export-details', SidebarPermissions::allowedKeys($this->user), ); + $this->assertContains( + 'fee-ratio-monitoring/cost-freight-anomaly', + SidebarPermissions::allowedKeys($this->user), + ); } public function testPrototypeSidebarDoesNotDuplicateOtherDirectoryPages(): void