允许英文账号查看人工费用 (#667)

允许 Chenxi、Jiangling 英文账号查看人工费用,并补充准入测试。
This commit is contained in:
chenxi 2026-10-27 09:47:09 +08:00
parent dec5e0d9e5
commit cf52eadbf9
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));
}