This website requires JavaScript.
Explore
Help
Register
Sign In
yujunjun
/
strapi
Watch
1
Star
0
Fork
0
You've already forked strapi
mirror of
https://github.com/strapi/strapi.git
synced
2025-07-28 03:20:17 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
strapi
/
packages
/
core
/
admin
/
server
/
policies
/
isAuthenticatedAdmin.js
6 lines
89 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Add check many permissions route/controller / Add userAbility to the context's state / Add isAuthenticatedAdmin.js Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-06-10 18:04:47 +02:00
'use strict'
;
Harmonize and make policies and middlwares more consistent
2021-10-04 18:16:28 +02:00
module
.
exports
=
ctx
=>
{
cast `isAuthenticated` as a boolean to avoid side effects Co-authored-by: Alexandre BODIN <alexandrebodin@users.noreply.github.com>
2021-09-24 09:59:19 +02:00
return
Boolean
(
ctx
.
state
.
isAuthenticated
)
;
Add check many permissions route/controller / Add userAbility to the context's state / Add isAuthenticatedAdmin.js Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-06-10 18:04:47 +02:00
}
;
Reference in New Issue
Copy Permalink