OAK-8276 : OR-CompositeTreePermission.grantsPermission should loop over aggregates of supported permissions