fix: 允许英文账号查看人工费用

This commit is contained in:
chenxi 2026-10-27 09:46:21 +08:00
parent 6cd209ea71
commit 08abc6efc3
2 changed files with 6 additions and 0 deletions

View File

@ -13,7 +13,9 @@ return [
'page_viewers' => [
'financial-operations/labor-expenses' => [
'晨曦',
'Chenxi',
'江陵',
'Jiangling',
],
],
];

View File

@ -13,11 +13,15 @@ class LaborExpensePageAccessTest extends FeatureTestCase
public function test_labor_expense_page_is_visible_only_to_the_named_accounts(): void
{
$chenxi = $this->account('晨曦');
$chenxiEnglish = $this->account('Chenxi');
$jiangling = $this->account('江陵');
$jianglingEnglish = $this->account('Jiangling');
$other = $this->account('其他财务');
$this->assertTrue($this->pageIsVisible($chenxi));
$this->assertTrue($this->pageIsVisible($chenxiEnglish));
$this->assertTrue($this->pageIsVisible($jiangling));
$this->assertTrue($this->pageIsVisible($jianglingEnglish));
$this->assertFalse($this->pageIsVisible($other));
$this->assertFalse($this->pageIsVisible($this->user));
}