mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 07:03:38 +00:00
fix the api-token routes policy
This commit is contained in:
parent
d2d123e3f8
commit
d48f5919c3
@ -63,7 +63,7 @@ module.exports = [
|
||||
config: {
|
||||
policies: [
|
||||
'admin::isAuthenticatedAdmin',
|
||||
{ name: 'admin::hasPermissions', config: { actions: ['admin::api-tokens.update'] } },
|
||||
{ name: 'admin::hasPermissions', config: { actions: ['admin::api-tokens.regenerate'] } },
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user