|
@@ -334,6 +334,12 @@ public class PermissionServiceImpl implements PermissionService {
|
|
|
result.setFlowIds(Collections.emptySet());
|
|
|
return result;
|
|
|
}
|
|
|
+ Set<Long> roleIds = convertSet(roles, RoleDO::getId);
|
|
|
+ //如果拥有超级管理员权限则可以查看所有流程
|
|
|
+ if (roleService.hasAnySuperAdmin(roleIds)) {
|
|
|
+ result.setAll(true);
|
|
|
+ return result;
|
|
|
+ }
|
|
|
for (RoleDO role : roles) {
|
|
|
CollUtil.addAll(result.getFlowIds(), role.getFlowIds());
|
|
|
}
|