Skip to content

Commit 337f0f2

Browse files
aitkarraSimonDmz
authored andcommitted
fix: add role keycloak API_CAMPAIGNS
1 parent df50699 commit 337f0f2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>fr.insee.pearljam</groupId>
99
<artifactId>pearljam-back-office</artifactId>
10-
<version>5.6.10</version>
10+
<version>5.6.11</version>
1111
<name>Pearl-Jam-Back-Office</name>
1212
<description>Back-office services for PearlJam</description>
1313

src/main/java/fr/insee/pearljam/infrastructure/security/config/OidcSecurityConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ private void authorizeRequests(HttpSecurity http) throws Exception {
149149
.hasRole(adminRole)
150150
.requestMatchers(HttpMethod.GET, Constants.API_CAMPAIGN_ID)
151151
.hasAnyRole(adminRole, interviewerRole, localUserRole, nationalUserRole)
152+
.requestMatchers(HttpMethod.GET, Constants.API_CAMPAIGNS_ID)
153+
.hasAnyRole(adminRole, interviewerRole, localUserRole, nationalUserRole)
152154
.requestMatchers(HttpMethod.PUT, Constants.API_CAMPAIGN_COLLECTION_DATES)
153155
.hasAnyRole(adminRole, localUserRole, nationalUserRole)
154156
.requestMatchers(HttpMethod.GET, Constants.API_CAMPAIGN_ID_INTERVIEWERS)

0 commit comments

Comments
 (0)