修改资料中心有管理权限就有下载权限

This commit is contained in:
梁琦涛
2024-08-30 11:19:20 +08:00
parent b5451794e5
commit b7fea3a1ce
@@ -111,10 +111,12 @@ public class LawsDataCenterFileServiceImpl extends ServiceImpl<LawsDataCenterFil
&& (StringUtils.isBlank(authManageIds) || !authManageIds.contains(userId))){ && (StringUtils.isBlank(authManageIds) || !authManageIds.contains(userId))){
file.setAuthManageTag(false); file.setAuthManageTag(false);
} }
// 下载权限标识 if(!file.isAuthManageTag()){
String authDownloadIds = file.getAuthDownloadIds(); // 下载权限标识
if (StringUtils.isBlank(authDownloadIds) || !authDownloadIds.contains(userId)){ String authDownloadIds = file.getAuthDownloadIds();
file.setAuthDownloadTag(false); if (StringUtils.isBlank(authDownloadIds) || !authDownloadIds.contains(userId)){
file.setAuthDownloadTag(false);
}
} }
} }
} }