fix: refuser par défaut is-payload-owner sans en-tête Authorization
This commit is contained in:
@@ -6,7 +6,7 @@ module.exports = async (policyContext, config, {strapi}) => {
|
||||
const {request} = policyContext
|
||||
|
||||
if (!request?.header?.authorization) {
|
||||
return true
|
||||
throw new UnauthorizedError('Opération non autorisée')
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user