Commit f43821c8 authored by Muhammad Suleman's avatar Muhammad Suleman

Added Security Layer for Admin Controller

parent f545276c
......@@ -50,7 +50,7 @@ public class OAuth2ServerConfiguration {
.authorizeRequests()
.antMatchers("/register/**").permitAll()
.antMatchers("/student/**").hasAuthority("STUDENT")
.antMatchers("/department/**", "/course/**").hasAuthority("ADMIN");
.antMatchers("/department/**", "/course/**","/admin/**").hasAuthority("ADMIN");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment