@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 536 B
JavaScript
import{copy as e}from"../../../libs/i18n/copy.mjs";import t from"../../../libs/repositories/media-folders.mjs";const n=async(n,r)=>{if(r.folderId===void 0||r.folderId===null)return{error:void 0,data:void 0};let i=await new t(n.db.client,n.config.db).selectSingleById({id:r.folderId,tenantKey:n.request.tenantKey,validation:{enabled:!0,defaultError:{message:e(`server:core.media.folders.not.found.message`),status:404}}});return i.error?i:{error:void 0,data:i.data}};export{n as default};
//# sourceMappingURL=check-folder-access.mjs.map