Skip to content

Commit

Permalink
chore: allow admins to retry step (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
pregnantboy authored Oct 9, 2024
1 parent 07ec25b commit a1d2230
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/backend/src/helpers/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ const authentication = shield(
isAuthenticated,
not(isAdminOperation), // Limiting admins to read-only for now.
),
/**
* Allow admins to retry steps and publish/unpublish pipes
*/
retryPartialStep: or(isAuthenticated, isAdminOperation),
retryExecutionStep: or(isAuthenticated, isAdminOperation),
bulkRetryExecutions: or(isAuthenticated, isAdminOperation),
updateFlowStatus: or(isAuthenticated, isAdminOperation),
requestOtp: rateLimitRule({ window: '1s', max: 5 }),
verifyOtp: rateLimitRule({ window: '1s', max: 5 }),
Expand Down

0 comments on commit a1d2230

Please sign in to comment.