Skip to content
Snippets Groups Projects

renforcement sécurité Backend

Merged Fatima Ezzahra Majidi requested to merge master into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -43,7 +43,7 @@ public class SecurityConfig {
.requestMatchers("/**").permitAll()
// Role-based access
// 👨‍🎓 STUDENTS (ETUDIANTS) - Can ONLY View Students & Stages
// STUDENTS (ETUDIANTS) - Can ONLY View Students & Stages
.requestMatchers(HttpMethod.GET, "/api/students").hasAuthority("ROLE_ETUDIANT")
.requestMatchers(HttpMethod.GET, "/api/stages").hasAuthority("ROLE_ETUDIANT")
Loading