Skip to content
Snippets Groups Projects
Commit 368d9a8a authored by wyl's avatar wyl
Browse files

UPDATE

parent 82f30ce9
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ public class WebSecurityConfig{
// Turn off the csrf mechanism, you can use get login, otherwise you can only use post
http .csrf(csrf-> csrf.disable())
.authorizeHttpRequests(requests -> requests
//.requestMatchers("/superAdminView.html").hasRole("SUPER")
.requestMatchers("/superAdminView.html").hasRole("SUPER")
//.requestMatchers("/hospitalView.html").hasRole("HOSPITAL")
//.requestMatchers("/admin.html").hasRole("ADMIN")
.anyRequest().permitAll()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment