mirror of
https://github.com/directus/directus.git
synced 2026-01-23 19:18:07 -05:00
fix/4873 (#4885)
* Fix permissions check for /system endpoint * Filter out empty / corrupted fields/collections rows in get-schema Fixes #4873
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -115,6 +115,8 @@ export async function getSchema(options?: {
|
||||
].filter((field) => (field.special ? toArray(field.special) : []).includes('no-data') === false);
|
||||
|
||||
for (const field of fields) {
|
||||
if (!result.collections[field.collection]) continue;
|
||||
|
||||
const existing = result.collections[field.collection].fields[field.field];
|
||||
|
||||
result.collections[field.collection].fields[field.field] = {
|
||||
|
||||
Reference in New Issue
Block a user