@stoker-platform/cli 0.5.27 → 0.5.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/package.json +1 -1
- package/lib/src/lint/lintSchema.js +5 -1
- package/package.json +1 -1
package/lib/package.json
CHANGED
|
@@ -322,7 +322,11 @@ export const lintSchema = async (noLog = false) => {
|
|
|
322
322
|
errors.push(`Collection ${collectionName} has a preload cache with a range field ${field} that does not exist`);
|
|
323
323
|
}
|
|
324
324
|
else if (rangeField.access) {
|
|
325
|
-
|
|
325
|
+
preloadCache.roles.forEach((role) => {
|
|
326
|
+
if (!rangeField.access?.includes(role)) {
|
|
327
|
+
errors.push(`Collection ${collectionName} has a preload cache range field ${field} that can't be accessed by role ${role}`);
|
|
328
|
+
}
|
|
329
|
+
});
|
|
326
330
|
}
|
|
327
331
|
});
|
|
328
332
|
}
|