Skip to content
Snippets Groups Projects
Verified Commit dc95d192 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

filter entities without retrieve permission after cache

parent ccfd5a19
No related branches found
No related tags found
No related merge requests found
...@@ -516,6 +516,10 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac ...@@ -516,6 +516,10 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
} else { } else {
logger.debug("Using cached result for {}", this.query); logger.debug("Using cached result for {}", this.query);
} }
filterEntitiesWithoutRetrievePermission(this.resultSet);
// Fill resulting entities into container
if (this.container != null && this.type == Type.FIND) { if (this.container != null && this.type == Type.FIND) {
for (final IdVersionPair p : this.resultSet) { for (final IdVersionPair p : this.resultSet) {
...@@ -558,10 +562,6 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac ...@@ -558,10 +562,6 @@ public class Query implements QueryInterface, ToElementable, TransactionInterfac
this.resultSet = getResultSet(executeStrategy(this.versioned), this.versioned); this.resultSet = getResultSet(executeStrategy(this.versioned), this.versioned);
filterEntitiesWithoutRetrievePermission(this.resultSet);
// Fill resulting entities into container
} finally { } finally {
cleanUp(); cleanUp();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment