@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
2 lines • 457 B
JavaScript
import{copy as e}from"../../../libs/i18n/copy.mjs";import{getMediaKeyTenantKey as t}from"../../../utils/media/media-key-tenant.mjs";const n=async(n,r)=>{let i=n.request.tenantKey;if(i==null)return{error:void 0,data:void 0};let a=t(r.key);return a!==null&&a!==i?{error:{type:`basic`,message:e(`server:core.media.not.found.message`),status:404},data:void 0}:{error:void 0,data:void 0}};export{n as default};
//# sourceMappingURL=check-media-key-access.mjs.map