strapi/packages/core/admin/server/policies/isAuthenticatedAdmin.js
Dieter Stinglhamber 3c1dcbe76d refactor policy API
2021-09-24 09:35:25 +02:00

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;
};