mirror of
https://github.com/strapi/strapi.git
synced 2025-12-09 14:03:52 +00:00
Fix audit logs route policy
This commit is contained in:
parent
9b348b4969
commit
0875dc97a8
@ -49,8 +49,15 @@ module.exports = {
|
||||
path: '/audit-logs',
|
||||
handler: 'auditLogs.findMany',
|
||||
config: {
|
||||
// @TODO: Check to right permissions
|
||||
policies: ['admin::isAuthenticatedAdmin'],
|
||||
policies: [
|
||||
'admin::isAuthenticatedAdmin',
|
||||
{
|
||||
name: 'admin::hasPermissions',
|
||||
config: {
|
||||
actions: ['admin::audit-logs.read'],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -58,8 +65,15 @@ module.exports = {
|
||||
path: '/audit-logs/:id',
|
||||
handler: 'auditLogs.findOne',
|
||||
config: {
|
||||
// @TODO: Check to right permissions
|
||||
policies: ['admin::isAuthenticatedAdmin'],
|
||||
policies: [
|
||||
'admin::isAuthenticatedAdmin',
|
||||
{
|
||||
name: 'admin::hasPermissions',
|
||||
config: {
|
||||
actions: ['admin::audit-logs.read'],
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user