Alexandre Bodin 07e7cfc0bd Make lint stricter and fix the errors
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
2020-11-02 19:41:42 +01:00

10 lines
135 B
JavaScript

'use strict';
module.exports = async (ctx, next) => {
if (!ctx.state.user) {
return ctx.unauthorized();
}
await next();
};