UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 437 B
import{copy as e}from"../../../libs/i18n/copy.mjs";import t from"../../../libs/repositories/roles.mjs";const n=async(n,r)=>{let i=await new t(n.db.client,n.config.db).selectSingleById({id:r.id,tenantKey:n.request.tenantKey,validation:{enabled:!0,defaultError:{message:e(`server:core.roles.not.found.message`),status:404}}});return i.error?i:{error:void 0,data:i.data}};export{n as default}; //# sourceMappingURL=check-role-access.mjs.map