Skip to content
Snippets Groups Projects
Commit e4b28547 authored by Jan Pokorný's avatar Jan Pokorný :lifter_tone2:
Browse files

removing register from permitted

parent 3c659642
No related branches found
No related tags found
1 merge request!46LanguageSchool fixes + enrol expel rework
Pipeline #
......@@ -21,7 +21,7 @@ public class AppSecurityConfig {
httpSecurity.csrf().disable();
httpSecurity.authorizeHttpRequests(x -> x
// "/users/register" is for automatic registering upon authentication
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**", "/users/register", "/datainitializer").permitAll()
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**", "/datainitializer").permitAll()
// PUT
.requestMatchers(HttpMethod.PUT, "/courses/**").hasAnyAuthority("SCOPE_test_1", "SCOPE_test_2")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment