Skip to content

Commit ade1ede

Browse files
committed
SecurityConfig: combine lines.
No code changes. [ci skip]
1 parent a13626b commit ade1ede

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,10 @@ public void configure(WebSecurity web) throws Exception {
7171
protected void configure(HttpSecurity http) throws Exception {
7272
http
7373
.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)
8278
.regexMatchers(HttpMethod.POST, "/series/[0-9]+")
8379
.hasAnyAuthority(
8480
StringAuthority.UPDATE_COLLECTION,

0 commit comments

Comments
 (0)