We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3b79b commit e7f9d93Copy full SHA for e7f9d93
backend/src/main/java/io/f1/backend/global/security/util/SecurityUtils.java
@@ -46,8 +46,7 @@ public static String getCurrentUserNickname() {
46
47
public static Role getCurrentUserRole() {
48
Authentication authentication = getAuthentication();
49
- if (authentication != null
50
- && authentication.getPrincipal() instanceof UserPrincipal) {
+ if (authentication != null && authentication.getPrincipal() instanceof UserPrincipal) {
51
return Role.USER;
52
}
53
return Role.ADMIN;
0 commit comments