fix: 成本运费异常继承退款目录权限 #976

Merged
renshen merged 1 commits from fix/renshen-cost-freight-anomaly-permission into main 2026-11-07 14:39:54 +08:00
2 changed files with 6 additions and 1 deletions

View File

@ -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';
}
}

View File

@ -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