diff --git a/src/identity-and-account/authentication/controllers/auth.controller.ts b/src/identity-and-account/authentication/controllers/auth.controller.ts index 2c3c666..ce925fb 100644 --- a/src/identity-and-account/authentication/controllers/auth.controller.ts +++ b/src/identity-and-account/authentication/controllers/auth.controller.ts @@ -12,7 +12,7 @@ export class AuthController { @Get('/callback') @UseGuards(OIDCLoginGuard) loginCallback(@Req() req: Request, @Res() res: Response) { - res.redirect(process.env.REDIRECT_URL_STAGING!); + res.redirect("http://10.100.251.2:9013/#/v1/login-success"); // res.redirect(process.env.REDIRECT_URL_DEV!); } diff --git a/src/time-and-attendance/bank-codes/bank-codes.controller.ts b/src/time-and-attendance/bank-codes/bank-codes.controller.ts index 23048a8..550847c 100644 --- a/src/time-and-attendance/bank-codes/bank-codes.controller.ts +++ b/src/time-and-attendance/bank-codes/bank-codes.controller.ts @@ -13,20 +13,17 @@ export class BankCodesControllers { //_____________________________________________________________________________________________ @Post() - @ModuleAccessAllowed(ModulesEnum.employee_management) create(@Body() dto: Prisma.BankCodesCreateInput ): Promise> { return this.bankCodesService.create(dto); } @Get() - @ModuleAccessAllowed(ModulesEnum.employee_management) findAll() { return this.bankCodesService.findAll(); } @Patch(':id') - @ModuleAccessAllowed(ModulesEnum.employee_management) update(@Param('id', ParseIntPipe) id: number, @Body() dto: Prisma.BankCodesUpdateInput ): Promise> { return this.bankCodesService.update(id, dto) diff --git a/src/time-and-attendance/pay-period/pay-periods.controller.ts b/src/time-and-attendance/pay-period/pay-periods.controller.ts index e900cae..52ba773 100644 --- a/src/time-and-attendance/pay-period/pay-periods.controller.ts +++ b/src/time-and-attendance/pay-period/pay-periods.controller.ts @@ -17,7 +17,7 @@ export class PayPeriodsController { ) { } @Get('current-and-all') - @ModuleAccessAllowed(ModulesEnum.timesheets_approval) + @ModuleAccessAllowed(ModulesEnum.timesheets) async getCurrentAndAll(@Query('date') date?: string): Promise> { const current = await this.queryService.findCurrent(date); if (!current.success) return { success: false, error: 'INVALID_PAY_PERIOD' }; @@ -29,13 +29,13 @@ export class PayPeriodsController { } @Get("date/:date") - @ModuleAccessAllowed(ModulesEnum.timesheets_approval) + @ModuleAccessAllowed(ModulesEnum.timesheets) async findByDate(@Param("date") date: string) { return this.queryService.findByDate(date); } @Get(":year/:periodNumber") - @ModuleAccessAllowed(ModulesEnum.timesheets_approval) + @ModuleAccessAllowed(ModulesEnum.timesheets) async findOneByYear( @Param("year", ParseIntPipe) year: number, @Param("periodNumber", ParseIntPipe) period_no: number,