fix: 用户id
parent
747baf5adf
commit
b263c34ef8
|
@ -19,7 +19,7 @@ import java.util.List;
|
||||||
public class AuthUtil {
|
public class AuthUtil {
|
||||||
|
|
||||||
public static String getUserId() {
|
public static String getUserId() {
|
||||||
return StpUtil.getLoginId().toString();
|
return String.valueOf(LoginHelper.getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static List<String> getUserRoles() {
|
public static List<String> getUserRoles() {
|
||||||
|
@ -27,7 +27,7 @@ public class AuthUtil {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isAdmin() {
|
public static boolean isAdmin() {
|
||||||
return AuthUtil.getUserRoles().contains(Constants.ROLE_ADMIN);
|
return LoginHelper.isSuperAdmin();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isClientUser() {
|
public static boolean isClientUser() {
|
||||||
|
|
Loading…
Reference in New Issue