Rename legacy role's ip_whitelist to ip_access (#20970)

This commit is contained in:
ian
2024-01-05 18:46:13 +08:00
committed by GitHub
parent 1c7853a606
commit 66411ad383
4 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
---
'@directus/specs': patch
'@directus/types': patch
---
Renamed legacy role's `ip_whitelist` to `ip_access`

View File

@@ -43,7 +43,7 @@ patch:
external_id:
description: ID used with external services in SCIM.
type: string
ip_whitelist:
ip_access:
description: Array of IP addresses that are allowed to connect to the API as a user of this role.
type: array
items:

View File

@@ -54,7 +54,7 @@ post:
external_id:
description: ID used with external services in SCIM.
type: string
ip_whitelist:
ip_access:
description: Array of IP addresses that are allowed to connect to the API as a user of this role.
type: array
items:
@@ -120,7 +120,7 @@ patch:
external_id:
description: ID used with external services in SCIM.
type: string
ip_whitelist:
ip_access:
description: Array of IP addresses that are allowed to connect to the API as a user of this role.
type: array
items:

View File

@@ -5,7 +5,7 @@ export type Role = {
icon: string;
enforce_tfa: null | boolean;
external_id: null | string;
ip_whitelist: string[];
ip_access: string[];
app_access: boolean;
admin_access: boolean;
};