File tree 1 file changed +4
-8
lines changed
src/main/java/ru/mystamps/web/support/spring/security
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,10 @@ public void configure(WebSecurity web) throws Exception {
71
71
protected void configure (HttpSecurity http ) throws Exception {
72
72
http
73
73
.authorizeRequests ()
74
- .mvcMatchers (Url .ADD_CATEGORY_PAGE )
75
- .hasAuthority (StringAuthority .CREATE_CATEGORY )
76
- .mvcMatchers (Url .ADD_COUNTRY_PAGE )
77
- .hasAuthority (StringAuthority .CREATE_COUNTRY )
78
- .mvcMatchers (Url .ADD_SERIES_PAGE )
79
- .hasAuthority (StringAuthority .CREATE_SERIES )
80
- .mvcMatchers (Url .SITE_EVENTS_PAGE )
81
- .hasAuthority (StringAuthority .VIEW_SITE_EVENTS )
74
+ .mvcMatchers (Url .ADD_CATEGORY_PAGE ).hasAuthority (StringAuthority .CREATE_CATEGORY )
75
+ .mvcMatchers (Url .ADD_COUNTRY_PAGE ).hasAuthority (StringAuthority .CREATE_COUNTRY )
76
+ .mvcMatchers (Url .ADD_SERIES_PAGE ).hasAuthority (StringAuthority .CREATE_SERIES )
77
+ .mvcMatchers (Url .SITE_EVENTS_PAGE ).hasAuthority (StringAuthority .VIEW_SITE_EVENTS )
82
78
.regexMatchers (HttpMethod .POST , "/series/[0-9]+" )
83
79
.hasAnyAuthority (
84
80
StringAuthority .UPDATE_COLLECTION ,
You can’t perform that action at this time.
0 commit comments