Explorar el Código

Merge remote-tracking branch 'remotes/origin/dev_1.0.0' into release_1.0.0

xiatian hace 2 años
padre
commit
e35f0dd5f6

+ 1 - 1
src/main/java/cn/com/qmth/mps/service/impl/UserServiceImpl.java

@@ -305,7 +305,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
 		if (ue == null) {
 			throw new StatusException("未找到用户信息");
 		}
-		if (!ue.getRoleId().equals(Role.SUPER_ADMIN.getId())) {
+		if (ue.getRoleId().equals(Role.SUPER_ADMIN.getId())) {
 			throw new StatusException("不能修改超级管理员");
 		}
 		if (!user.getRole().equals(Role.SUPER_ADMIN) && !user.getSchoolId().equals(ue.getSchoolId())) {