fix: view permissions include list and get

This commit is contained in:
chenos 2025-04-01 19:38:12 +08:00
parent b04d4a82d9
commit 8d58b72408

View File

@ -171,7 +171,7 @@ export class PluginPublicFormsServer extends Plugin {
skip: true, skip: true,
}; };
} else if ( } else if (
(actionName === 'list' && ctx.PublicForm['targetCollections'].includes(resourceName)) || (['list', 'get'].includes(actionName) && ctx.PublicForm['targetCollections'].includes(resourceName)) ||
(collection.options.template === 'file' && actionName === 'create') || (collection.options.template === 'file' && actionName === 'create') ||
(resourceName === 'storages' && actionName === 'getBasicInfo') || (resourceName === 'storages' && actionName === 'getBasicInfo') ||
(resourceName === 'map-configuration' && actionName === 'get') (resourceName === 'map-configuration' && actionName === 'get')