Skip to content

Commit

Permalink
HDDS-9152. Part of HDDS-7240 is missing due to incorrect conflict res…
Browse files Browse the repository at this point in the history
…olution
  • Loading branch information
smengcl committed Aug 10, 2023
1 parent 57f6535 commit 4b1cf49
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2693,13 +2693,10 @@ public List<OmVolumeArgs> listAllVolumes(String prefix, String prevKey, int
auditMap.put(OzoneConsts.USERNAME, null);
try {
metrics.incNumVolumeLists();
if (!allowListAllVolumes) {
// Only admin can list all volumes when disallowed in config
if (isAclEnabled) {
omMetadataReader.checkAcls(ResourceType.VOLUME,
StoreType.OZONE, ACLType.LIST,
OzoneConsts.OZONE_ROOT, null, null);
}
if (isAclEnabled) {
omMetadataReader.checkAcls(ResourceType.VOLUME,
StoreType.OZONE, ACLType.LIST,
OzoneConsts.OZONE_ROOT, null, null);
}
return volumeManager.listVolumes(null, prefix, prevKey, maxKeys);
} catch (Exception ex) {
Expand Down

0 comments on commit 4b1cf49

Please sign in to comment.