test(ui-guards): 导航契约守卫基线对齐后端真实权限码
- admin-role-navigation-contracts.mjs L40-41 原断言 referral.manage / matchmaker.service.view,但后端 permissions 表不存在这两个幽灵码—— v1.1.1 权限码对齐(4edb761)时漏更新守卫基线,导致该守卫自 v1.1.1 起恒红 - 修正为后端真实 authority 码:/referral→matchmaker.service、 /matchmaker→matchmaker.view(守卫内容修正,非删守卫,MIN_GUARDS 不变) - 实测 UI 契约 24/24 全绿
This commit is contained in:
@@ -37,8 +37,8 @@ const requiredMenuEntries = [
|
||||
['/activities', 'activity.view'],
|
||||
['/activities/checkin', 'activity.checkin'],
|
||||
['/activities/interests', 'activity.review_registration'],
|
||||
['/referral', 'referral.manage'],
|
||||
['/matchmaker', 'matchmaker.service.view'],
|
||||
['/referral', 'matchmaker.service'],
|
||||
['/matchmaker', 'matchmaker.view'],
|
||||
['/counseling', 'counseling.service.view'],
|
||||
['/banner', 'banner.view'],
|
||||
['/content', 'content.view'],
|
||||
|
||||
Reference in New Issue
Block a user