Skip to content

Commit

Permalink
fix: 출석/미출석 명단 api 권한 수정, 출석체크 여부 초기화 시간 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LimiteDiTempo committed Jun 12, 2024
1 parent d7daf96 commit 96e39ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public List<User> checkUsers(PageRequest pageRequest) {

@Override
@Transactional
@Scheduled(cron = "0 30 20 * * *") // 매일 오후 8시에 실행
@Scheduled(cron = "0 0 1 * * *") // 매일 오후 8시에 실행
public void updateChecked() {
userQueryRepository.updateChecked();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http, CorsConfigurat
.requestMatchers("/auth/**").permitAll()
.requestMatchers(POST,"/attendance/code").permitAll()
.requestMatchers(DELETE,"/user").permitAll()
.requestMatchers(GET,"/attendance/non-check").permitAll()

.requestMatchers("/outing-admin/**").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers("/sleepover-admin/**").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers(GET,"/attendance/check").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers(GET,"/attendance/non-check").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers(GET,"/user-admin/non-check").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers(GET,"/user-admin/check").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers(GET,"/user-admin/find-all").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers(GET,"/user-admin/search").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers(GET,"/user-admin/update-check").hasAnyAuthority(ADMIN,TEACHER)
Expand Down

0 comments on commit 96e39ab

Please sign in to comment.