Skip to content

Commit

Permalink
Merge pull request #16 from Sopo2023/feat/#1
Browse files Browse the repository at this point in the history
fix: enum
  • Loading branch information
GayeongKimm authored Jul 26, 2024
2 parents c777372 + dcd0e73 commit 89842a8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,11 @@ jobs:
docker rmi ${{ secrets.DOCKER_USERNAME }}/sopo_v2
docker pull ${{ secrets.DOCKER_USERNAME }}/sopo_v2
docker run -d -p 8080:8080 --name sopo_v2 ${{ secrets.DOCKER_USERNAME }}/sopo_v2
sudo docker pull redis:latest
sudo docker run -d --name redis -p 6379:6379 --network redis-network redis:latest
sudo docker rm -f alimo_redis alimo_app
docker rmi ${{ secrets.DOCKER_USERNAME }}/alimo:latest
docker pull ${{ secrets.DOCKER_USERNAME }}/alimo:latest
sudo docker run -d --name alimo_redis_new redis:latest
docker run -d -p 80:8080 --name alimo ${{ secrets.DOCKER_USERNAME }}/alimo:latest
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ public class MemberEntity extends BaseTimeEntity {
private String memberSchool;

@Column(name = "member_category")
@Enumerated(EnumType.STRING)
private MemberCategory memberCategory;

@Builder.Default
@Enumerated(EnumType.STRING)
private MemberState memberState = MemberState.ACTIVE;

@Column(name = "member_fcm_token", columnDefinition = "TEXT")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers("/auth/**").permitAll()
.requestMatchers("/email/**").permitAll()
.requestMatchers("/re_provide/**").permitAll()
.requestMatchers("/file").hasRole("ACTIVE")
.requestMatchers("/board").hasRole("ACTIVE")
.requestMatchers("/contest").hasRole("ACTIVE")
.requestMatchers("/like").hasRole("ACTIVE")
.requestMatchers("/file/**").hasRole("ACTIVE")
.requestMatchers("/board/**").hasRole("ACTIVE")
.requestMatchers("/contest/**").hasRole("ACTIVE")
.requestMatchers("/like/**").hasRole("ACTIVE")
.anyRequest().authenticated()
.and()
.formLogin().disable()
Expand Down

0 comments on commit 89842a8

Please sign in to comment.