mirror of
https://github.com/strapi/strapi.git
synced 2025-11-26 15:11:24 +00:00
cast isAuthenticated as a boolean to avoid side effects
Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
This commit is contained in:
parent
7a03e65c3f
commit
e4d443ed09
@ -1,5 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
module.exports = ({ ctx }) => {
|
module.exports = ({ ctx }) => {
|
||||||
return ctx.state.isAuthenticated;
|
return Boolean(ctx.state.isAuthenticated);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user