Skip to content

Commit

Permalink
Patch requireAuth middleware in getting secret snapshot by id
Browse files Browse the repository at this point in the history
  • Loading branch information
dangtony98 committed Jan 4, 2023
1 parent 5967a5c commit 15db792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/ee/routes/v1/secretSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import { secretSnapshotController } from '../../controllers/v1';

router.get(
'/:secretSnapshotId',
requireAuth,
requireAuth({
acceptedAuthModes: ['jwt']
}),
requireSecretSnapshotAuth({
acceptedRoles: [ADMIN, MEMBER],
acceptedStatuses: [GRANTED]
Expand Down

0 comments on commit 15db792

Please sign in to comment.