Skip to content

Commit

Permalink
[Fix-15072][Resource Center] Non-admin user can not query resource re…
Browse files Browse the repository at this point in the history
…cursively (#15097)
  • Loading branch information
Radeity authored Nov 2, 2023
1 parent d5f99cc commit dc503b0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,12 @@ private List<StorageEntity> queryStorageEntityList(User loginUser, String fullNa

try {
if (StringUtils.isBlank(fullName)) {
resourcesList = storageOperate.listFilesStatus(defaultPath, defaultPath, tenantCode, type);
} else {
resourcesList = storageOperate.listFilesStatus(fullName, defaultPath, tenantCode, type);
fullName = defaultPath;
}
resourcesList = recursive ? storageOperate.listFilesStatusRecursively(fullName, defaultPath,
tenantCode, type)
: storageOperate.listFilesStatus(fullName, defaultPath,
tenantCode, type);
} catch (Exception e) {
log.error(e.getMessage() + " Resource path: {}", fullName, e);
throw new ServiceException(String.format(e.getMessage() +
Expand Down

0 comments on commit dc503b0

Please sign in to comment.