Skip to content

Commit

Permalink
#9 feat: UserDetailsImpl role 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chaerlo127 committed Jul 24, 2023
1 parent 681e737 commit bccea70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/com/psr/psr/global/jwt/UserDetailsImpl.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class UserDetailsImpl(val user:User) :UserDetails {

var enabled: Boolean = true
override fun getAuthorities(): MutableCollection<out GrantedAuthority> {
// todo: user role entity 생기면 넣어두기
val grantedAuthority = SimpleGrantedAuthority("user.role.name")
val grantedAuthority = SimpleGrantedAuthority(user.type.name)
return mutableListOf(grantedAuthority)
}

Expand Down

0 comments on commit bccea70

Please sign in to comment.