Skip to content

Commit b08a566

Browse files
authored
Merge pull request #373 from GSM-MSG/hotfix/372-add-pdf-permissino
♻️ /student/pdf 경로 접근 권한 추가
2 parents beeb18c + fabdc99 commit b08a566

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sms-infrastructure/src/main/kotlin/team/msg/sms/global/security/SecurityConfig.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class SecurityConfig(
6363
.antMatchers(HttpMethod.POST, "/student/link").hasAuthority(TEACHER)
6464
.antMatchers(HttpMethod.GET, "/student/link").permitAll()
6565
.antMatchers(HttpMethod.GET, "/student/{uuid}").hasAnyAuthority(STUDENT, TEACHER)
66+
.antMatchers(HttpMethod.PUT, "/student/pdf").hasAuthority(STUDENT)
6667
.antMatchers(HttpMethod.GET, "/student/anonymous/{uuid}").permitAll()
6768

6869
.antMatchers(HttpMethod.POST, "/teacher/common").hasAuthority(TEACHER)
@@ -95,7 +96,7 @@ class SecurityConfig(
9596

9697
.antMatchers(HttpMethod.GET, "/stack/list").permitAll()
9798

98-
.anyRequest().authenticated()
99+
.anyRequest().denyAll()
99100

100101
http
101102
.apply(FilterConfig(jwtParser, objectMapper))

0 commit comments

Comments
 (0)