Skip to content

Commit

Permalink
refactor : lecture, enrollment, attendance api에 ADMIN, LECTURER, STUD…
Browse files Browse the repository at this point in the history
…ENT 접근 권한 설정 (#19)
  • Loading branch information
binary-ho committed Apr 26, 2023
1 parent cafc3fc commit 17aa406
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.antMatchers("/api/v1/admin/**")
.access("hasRole('ROLE_ADMIN')")

.antMatchers("/api/v1/lectures/**", "/api/v1/enrollment/**")
.access("hasAnyRole('ROLE_ADMIN', 'ROLE_LECTURER')")

.antMatchers("/api/v1/students/**")
.antMatchers("/api/v1/lectures/**", "/api/v1/enrollment/**", "/api/v1/attendance/**")
.access("hasAnyRole('ROLE_ADMIN', 'ROLE_LECTURER', 'ROLE_STUDENT')")

.anyRequest().authenticated();
Expand Down

0 comments on commit 17aa406

Please sign in to comment.