From cf52eadbf9154056acbf839f111f75b5ea56d4d9 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 27 Oct 2026 09:47:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=8B=B1=E6=96=87=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E6=9F=A5=E7=9C=8B=E4=BA=BA=E5=B7=A5=E8=B4=B9=E7=94=A8?= =?UTF-8?q?=20(#667)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 允许 Chenxi、Jiangling 英文账号查看人工费用,并补充准入测试。 --- config/business_page_access.php | 2 ++ tests/Feature/Business/LaborExpensePageAccessTest.php | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/config/business_page_access.php b/config/business_page_access.php index eec1d370..45d6a5cf 100644 --- a/config/business_page_access.php +++ b/config/business_page_access.php @@ -13,7 +13,9 @@ return [ 'page_viewers' => [ 'financial-operations/labor-expenses' => [ '晨曦', + 'Chenxi', '江陵', + 'Jiangling', ], ], ]; diff --git a/tests/Feature/Business/LaborExpensePageAccessTest.php b/tests/Feature/Business/LaborExpensePageAccessTest.php index d465d7d7..f6708002 100644 --- a/tests/Feature/Business/LaborExpensePageAccessTest.php +++ b/tests/Feature/Business/LaborExpensePageAccessTest.php @@ -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)); }