diff --git a/apps/api/src/bank-transactions/bank-transactions.controller.ts b/apps/api/src/bank-transactions/bank-transactions.controller.ts index 90525c1a..3355d8e7 100644 --- a/apps/api/src/bank-transactions/bank-transactions.controller.ts +++ b/apps/api/src/bank-transactions/bank-transactions.controller.ts @@ -169,8 +169,7 @@ export class BankTransactionsController { const isDev = appEnv === 'development' || appEnv === 'staging' if (!isDev) throw new ForbiddenException('Endpoint available only for testing enviroments') - if (appEnv === 'staging' && !isAdmin(user)) - throw new ForbiddenException('Must be either an admin or active affiliate') + if (!isAdmin(user)) throw new ForbiddenException('Must be an admin') return await this.bankTransactionsService.simulateIrisTask( irisDto.irisIbanAccountInfo,