lyhzzz 2 anos atrás
pai
commit
c0036ff7a7

+ 1 - 1
src/main/java/com/fdkankan/ucenter/service/impl/AppSceneService.java

@@ -93,7 +93,7 @@ public class AppSceneService {
             }
             param.setUserId(user.getId());
             SysRole role = userRoleService.getByUserId(user.getId());
-            if(role != null && "admin".contains(role.getRoleType())){
+            if(role != null && role.getRoleType().contains("admin")){
                 canDelBut = true;
             }
         }