|
@@ -179,7 +179,7 @@ public class AuthServiceImpl implements AuthService {
|
|
|
|
|
|
// 学习中心角色的用户
|
|
|
if (1 == user.getRoleList().size()
|
|
|
- && user.getRoleList().get(0).getRoleCode().equals(RoleMeta.LC_USER)) {
|
|
|
+ && user.getRoleList().get(0).getRoleCode().equals(RoleMeta.LC_USER.name())) {
|
|
|
if (null != org && !org.getEnable()) {
|
|
|
throw new StatusException("B-001008", "学习中心被禁用");
|
|
|
}
|