mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Patch requireAuth middleware in getting secret snapshot by id
This commit is contained in:
@@ -13,7 +13,9 @@ import { secretSnapshotController } from '../../controllers/v1';
|
|||||||
|
|
||||||
router.get(
|
router.get(
|
||||||
'/:secretSnapshotId',
|
'/:secretSnapshotId',
|
||||||
requireAuth,
|
requireAuth({
|
||||||
|
acceptedAuthModes: ['jwt']
|
||||||
|
}),
|
||||||
requireSecretSnapshotAuth({
|
requireSecretSnapshotAuth({
|
||||||
acceptedRoles: [ADMIN, MEMBER],
|
acceptedRoles: [ADMIN, MEMBER],
|
||||||
acceptedStatuses: [GRANTED]
|
acceptedStatuses: [GRANTED]
|
||||||
|
|||||||
Reference in New Issue
Block a user