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 988e4ad commit 2b3b79bCopy full SHA for 2b3b79b
backend/src/main/java/io/f1/backend/global/security/util/SecurityUtils.java
@@ -47,7 +47,7 @@ public static String getCurrentUserNickname() {
47
public static Role getCurrentUserRole() {
48
Authentication authentication = getAuthentication();
49
if (authentication != null
50
- && authentication.getPrincipal() instanceof UserPrincipal userPrincipal) {
+ && authentication.getPrincipal() instanceof UserPrincipal) {
51
return Role.USER;
52
}
53
return Role.ADMIN;
0 commit comments