test(admin): include alerts routes in admin auth guards check
This commit is contained in:
parent
21cf8d79b3
commit
c8ac730791
1 changed files with 7 additions and 1 deletions
|
|
@ -39,6 +39,10 @@ const adminRoutes = {
|
||||||
'pre-registrants/bulk-status.patch.js',
|
'pre-registrants/bulk-status.patch.js',
|
||||||
'pre-registrants/invite.post.js',
|
'pre-registrants/invite.post.js',
|
||||||
'pre-registrants/stats.get.js'
|
'pre-registrants/stats.get.js'
|
||||||
|
],
|
||||||
|
'admin/alerts/': [
|
||||||
|
'alerts/index.get.js',
|
||||||
|
'alerts/dismiss.post.js'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -62,7 +66,9 @@ const businessLogicPatterns = [
|
||||||
'PreRegistration.find',
|
'PreRegistration.find',
|
||||||
'PreRegistration.findById',
|
'PreRegistration.findById',
|
||||||
'PreRegistration.aggregate',
|
'PreRegistration.aggregate',
|
||||||
'PreRegistration.updateMany'
|
'PreRegistration.updateMany',
|
||||||
|
'computeAllAlerts(',
|
||||||
|
'AdminAlertDismissal.findOneAndUpdate'
|
||||||
]
|
]
|
||||||
|
|
||||||
describe('Admin endpoint auth guards', () => {
|
describe('Admin endpoint auth guards', () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue