diff --git a/src/server/server.module.ts b/src/server/server.module.ts index 7cbd5dc49..5666d37bd 100644 --- a/src/server/server.module.ts +++ b/src/server/server.module.ts @@ -10,7 +10,7 @@ import { mappingErrorHandler } from '../shared/error/index.js'; import { PersonApiModule } from '../modules/person/person-api.module.js'; import { KeycloakAdministrationModule } from '../modules/keycloak-administration/keycloak-administration.module.js'; import { OrganisationApiModule } from '../modules/organisation/organisation-api.module.js'; -import { AuthGuard, KeycloakConnectModule, ResourceGuard, RoleGuard } from 'nest-keycloak-connect'; +import { AuthGuard, KeycloakConnectModule, RoleGuard } from 'nest-keycloak-connect'; import { APP_GUARD } from '@nestjs/core'; import { HealthModule } from '../modules/health/health.module.js'; import { UiBackendApiModule } from '../modules/ui-backend/ui-backend-api.module.js'; @@ -74,10 +74,6 @@ import { UiBackendApiModule } from '../modules/ui-backend/ui-backend-api.module. provide: APP_GUARD, useClass: RoleGuard, }, - { - provide: APP_GUARD, - useClass: ResourceGuard, - }, ], }) export class ServerModule {}