sync: 对齐小程序 v1.0.2 生产代码并脱敏
This commit is contained in:
@@ -109,3 +109,15 @@ func TestDataServiceFeaturesUseConsolePermissions(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestWorkOrderHandlingRequiresDedicatedPermissions(t *testing.T) {
|
||||
for _, action := range []string{"reply", "resolve", "transfer", "close", "cancel", "confirm", "evaluate", "reopen"} {
|
||||
required := appWorkOrderHandlerPermission(action)
|
||||
if appAccessCodesMatchExpression([]string{"cpm:gen:tWoMain:list", "cpm:gen:tWoMain:view"}, required) {
|
||||
t.Fatalf("list/view granted %s", action)
|
||||
}
|
||||
if !appAccessCodesMatchExpression([]string{required}, required) {
|
||||
t.Fatalf("dedicated permission did not grant %s", action)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user