Revize bf502b70
Přidáno uživatelem Jakub Šmíd před asi 2 roky(ů)
backend/src/main/java/cz/zcu/kiv/backendapi/security/SecurityConfig.java | ||
---|---|---|
63 | 63 |
PERMITTED_ENDPOINTS.put("/catalog-items", HttpMethod.GET); |
64 | 64 |
PERMITTED_ENDPOINTS.put("/catalog-items/**", HttpMethod.GET); |
65 | 65 |
PERMITTED_ENDPOINTS.put("/title-page", HttpMethod.GET); |
66 |
PERMITTED_ENDPOINTS.put("/sources", HttpMethod.GET); |
|
66 | 67 |
} |
67 | 68 |
|
68 | 69 |
/** |
... | ... | |
92 | 93 |
.antMatchers(HttpMethod.POST, "/catalog-items").hasAuthority(Permission.WRITE.name()) |
93 | 94 |
.antMatchers(HttpMethod.PUT, "/catalog-items/*").hasAuthority(Permission.WRITE.name()) |
94 | 95 |
.antMatchers(HttpMethod.DELETE, "/catalog-items/*").hasAuthority(Permission.DELETE.name()) |
95 |
.antMatchers(HttpMethod.POST, "/title-page").hasRole(Role.ADMIN.name()) |
|
96 |
.antMatchers(HttpMethod.POST, "/title-page", "/sources").hasRole(Role.ADMIN.name())
|
|
96 | 97 |
.anyRequest() |
97 | 98 |
.authenticated(); |
98 | 99 |
} |
Také k dispozici: Unified diff
Added sources (can add/edit bibliography page)
re #9788