this.repoRegistry = repoRegistry;
}
public boolean authorizePath(final Repository repository, final ResourceStoreRequest request, final Action action) {
// check repo only first, if there is directly assigned matching target permission, we're good
final TargetSet matched = repository.getTargetsForRequest(request);
if (matched != null && authorizePath(matched, action)) {
return true;
}
// if we are here, we need to check cascading permissions, where this repository is contained in group
return authorizePathCascade(repository, request, action);