Skip to content

Commit

Permalink
Merge pull request #161 from themoment-team/develop
Browse files Browse the repository at this point in the history
기본 이미지 변경 API 수정사항 적용
  • Loading branch information
tlsgmltjd authored May 27, 2024
2 parents cd03c99 + 67a58f7 commit bf4f681
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class User(
val snsUrl: String?,

@Column(nullable = true)
val profileUrl: String?,
var profileUrl: String?,

@Column(name = "default_img_number")
var defaultImgNumber: Int = 0,
Expand Down Expand Up @@ -65,6 +65,10 @@ class User(

fun updateProfileNumber(defaultImgNumber: Int) {
this.defaultImgNumber = defaultImgNumber

if (this.profileUrl != null) {
this.profileUrl = null
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ class SecurityConfig(
Authority.USER.name,
Authority.TEACHER.name
)
// /user/profile-number
.mvcMatchers("/api/v1/user/profile-number").hasAnyRole(
Authority.TEMP_USER.name,
Authority.USER.name,
Authority.TEACHER.name
)
// /user
.mvcMatchers("/api/v1/user/**").hasAnyRole(
Authority.USER.name,
Expand Down

0 comments on commit bf4f681

Please sign in to comment.