Add role-based access control for gamification endpoints
LocationBasedServices/sumoc-backend/pipeline/head This commit looks good

This commit is contained in:
2026-01-16 17:58:49 +01:00
parent f8c661ccb6
commit 4e11dd2d78
@@ -98,6 +98,11 @@ public class SecurityConfiguration {
auth.requestMatchers("/friendship/**").hasAnyRole("ADMIN", "USER");
auth.requestMatchers("/trip/**").hasAnyRole("USER", "ADMIN");
auth.requestMatchers("/geocoding/**").hasAnyRole("USER", "ADMIN");
// gamification
auth.requestMatchers("/badges/**").hasAnyRole("ADMIN", "USER");
auth.requestMatchers("/leaderboard/**").hasAnyRole("ADMIN", "USER");
//auth.requestMatchers("/error").permitAll();
auth.anyRequest().authenticated();