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-27 19:10:01 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
strapi
/
packages
/
core
/
admin
/
server
/
policies
/
isAuthenticatedAdmin.js
6 lines
103 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'
;
Prettier and backend fix
2022-08-08 23:33:39 +02:00
module
.
exports
=
(
policyCtx
)
=>
{
Refactor policies to have a consistent factory API like middlewares
2021-11-05 12:19:49 +01:00
return
Boolean
(
policyCtx
.
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