Skip to content

Commit 2cfd0b9

Browse files
committed
Changes in securityConfig
1 parent fcc4ac9 commit 2cfd0b9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/main/java/greencity/config/SecurityConfig.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,16 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
122122
"/user/findAllByEmailNotification",
123123
"/user/checkByUuid",
124124
"/user/get-user-rating",
125-
COMMIT_INFO)
125+
COMMIT_INFO,
126+
LOGS_LINKS)
126127
.permitAll()
127128
.requestMatchers(HttpMethod.POST,
128129
"/ownSecurity/signUp",
129130
"/ownSecurity/signIn",
130131
"/ownSecurity/updatePassword",
131132
"/ownSecurity/unblockAccount",
132-
"/api/testers/sign-in")
133+
"/api/testers/sign-in",
134+
LOGS_LINKS)
133135
.permitAll()
134136
.requestMatchers(HttpMethod.GET, "/check-auth").permitAll()
135137
.requestMatchers(HttpMethod.GET,
@@ -154,7 +156,6 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
154156
"/user/emailNotifications",
155157
"/lang",
156158
"/lang/**",
157-
LOGS_LINKS,
158159
EXPORT_SETTINGS_LINKS)
159160
.hasAnyRole(USER, ADMIN, UBS_EMPLOYEE, MODERATOR, EMPLOYEE)
160161
.requestMatchers(HttpMethod.POST,
@@ -163,8 +164,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
163164
.requestMatchers(HttpMethod.POST, USER_LINK,
164165
"/user/to-do-list-items",
165166
"/user/{userId}/habit",
166-
"/ownSecurity/set-password",
167-
LOGS_LINKS)
167+
"/ownSecurity/set-password")
168168
.hasAnyRole(USER, ADMIN, UBS_EMPLOYEE, MODERATOR, EMPLOYEE)
169169
.requestMatchers(HttpMethod.PUT,
170170
"/ownSecurity/changePassword",

0 commit comments

Comments
 (0)