fix: 成本运费异常继承退款目录权限 #976
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user