24 lines
2.3 KiB
JSON
24 lines
2.3 KiB
JSON
{
|
|
"version": 1,
|
|
"phoneCases": [
|
|
{ "input": " +86 (138) 0013-8000 ", "normalized": "+8613800138000", "valid": true },
|
|
{ "input": "12345", "normalized": "12345", "valid": false },
|
|
{ "input": "13800abc000", "normalized": "13800abc000", "valid": false }
|
|
],
|
|
"authorizationCases": [
|
|
{ "name": "super administrator manages any account", "actorRole": "super_admin", "actorOrganizationId": "org-1", "targetRole": "organization_admin", "targetOrganizationId": "org-2", "allowed": true },
|
|
{ "name": "organization administrator manages own ordinary user", "actorRole": "organization_admin", "actorOrganizationId": "org-1", "targetRole": "user", "targetOrganizationId": "org-1", "allowed": true },
|
|
{ "name": "organization administrator cannot manage peer administrator", "actorRole": "organization_admin", "actorOrganizationId": "org-1", "targetRole": "organization_admin", "targetOrganizationId": "org-1", "allowed": false },
|
|
{ "name": "organization administrator cannot cross organizations", "actorRole": "organization_admin", "actorOrganizationId": "org-1", "targetRole": "user", "targetOrganizationId": "org-2", "allowed": false }
|
|
],
|
|
"sessionVersionCases": [
|
|
{ "name": "display name only", "roleChanged": false, "organizationChanged": false, "statusChanged": false, "passwordChanged": false, "clearLoginLock": false, "increment": false },
|
|
{ "name": "clear login lock only", "roleChanged": false, "organizationChanged": false, "statusChanged": false, "passwordChanged": false, "clearLoginLock": true, "increment": false },
|
|
{ "name": "role mutation", "roleChanged": true, "organizationChanged": false, "statusChanged": false, "passwordChanged": false, "clearLoginLock": false, "increment": true },
|
|
{ "name": "organization mutation", "roleChanged": false, "organizationChanged": true, "statusChanged": false, "passwordChanged": false, "clearLoginLock": false, "increment": true },
|
|
{ "name": "status mutation", "roleChanged": false, "organizationChanged": false, "statusChanged": true, "passwordChanged": false, "clearLoginLock": true, "increment": true },
|
|
{ "name": "password mutation", "roleChanged": false, "organizationChanged": false, "statusChanged": false, "passwordChanged": true, "clearLoginLock": true, "increment": true }
|
|
],
|
|
"archiveTables": ["assets", "generation_jobs", "projects", "image_templates"]
|
|
}
|