mirror of
https://github.com/strapi/strapi.git
synced 2025-07-31 21:09:39 +00:00
14 lines
231 B
JavaScript
14 lines
231 B
JavaScript
'use strict';
|
|
|
|
// module.exports = (ctx, next) => {
|
|
// if (!ctx.state.isAuthenticated) {
|
|
// return ctx.unauthorized();
|
|
// }
|
|
|
|
// return next();
|
|
// };
|
|
|
|
module.exports = ({ ctx }) => {
|
|
return ctx.state.isAuthenticated;
|
|
};
|