|
@@ -104,7 +104,8 @@ public class SysUserController {
|
|
|
private final SysRoleService roleService;
|
|
|
|
|
|
private static final List<Integer> SALESMAN_ROLE_ID = ListUtil.of(5, 6);
|
|
|
- private static final List<Integer> ADMIN_ROLE_ID = ListUtil.of(1, 2, 7, 19, 27, 34, 35, 44, 45, 46, 47, 48, 49);
|
|
|
+// private static final List<Integer> ADMIN_ROLE_ID = ListUtil.of(1, 2, 7, 19, 27, 34, 35, 44, 45, 46, 47, 48, 49);
|
|
|
+ private static final List<Integer> ADMIN_ROLE_ID = Collections.emptyList();
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -162,8 +163,7 @@ public class SysUserController {
|
|
|
|
|
|
Set<Integer> roleIds = Arrays.stream(roles).collect(Collectors.toSet());
|
|
|
|
|
|
-
|
|
|
- return !CollUtil.containsAny(roleIds, ADMIN_ROLE_ID);
|
|
|
+ return CollUtil.containsAny(roleIds, ADMIN_ROLE_ID);
|
|
|
}
|
|
|
|
|
|
/**
|