mirror of
https://github.com/strapi/strapi.git
synced 2025-09-10 17:17:19 +00:00
8 lines
141 B
JavaScript
8 lines
141 B
JavaScript
module.exports = async (ctx, next) => {
|
|
if (!ctx.state.user) {
|
|
throw new Error('Authentication is required.');
|
|
}
|
|
|
|
await next();
|
|
};
|