16 lines
565 B
PowerShell
16 lines
565 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$root = Split-Path -Parent $PSScriptRoot
|
|
$page = Get-Content -LiteralPath (Join-Path $root 'pages/tree/t05-edit-member.vue') -Raw -Encoding UTF8
|
|
|
|
foreach ($forbidden in @('<text>人物编号</text>', '<text>业务用户</text>')) {
|
|
if ($page.Contains($forbidden)) {
|
|
throw "Edit-member form must not expose the internal identifier: $forbidden"
|
|
}
|
|
}
|
|
|
|
if (-not $page.Contains('appApi.updatePerson(')) {
|
|
throw 'Edit-member save contract must remain intact'
|
|
}
|
|
|
|
Write-Output 'MEMBER-INTERNAL-IDENTIFIERS-VISIBILITY-CONTRACT PASS'
|