Skip to content

Commit c02aab6

Browse files
committed
refactor(SecurityConfig): use hasAuthority() instead of hasAnyAuthority().
Should be in 9287473 commit. No functional changes. [skip ci]
1 parent 0fd6de5 commit c02aab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected void configure(HttpSecurity http) throws Exception {
8686
.mvcMatchers(Url.SUGGEST_SERIES_COUNTRY).hasAuthority(StringAuthority.CREATE_SERIES)
8787
.mvcMatchers(Url.DAILY_STATISTICS).hasAuthority(StringAuthority.VIEW_DAILY_STATS)
8888
// @todo #884 /collection/{slug}/estimation: only owner should have access to estimation page
89-
.mvcMatchers(Url.ESTIMATION_COLLECTION_PAGE).hasAnyAuthority(StringAuthority.ADD_SERIES_PRICE)
89+
.mvcMatchers(Url.ESTIMATION_COLLECTION_PAGE).hasAuthority(StringAuthority.ADD_SERIES_PRICE)
9090
.regexMatchers(HttpMethod.POST, "/series/[0-9]+")
9191
.hasAnyAuthority(
9292
StringAuthority.UPDATE_COLLECTION,

0 commit comments

Comments
 (0)