Skip to content
Snippets Groups Projects

Release 0.12.1

Merged Timm Fitschen requested to merge release-0.12.1 into main
2 files
+ 7
4
Compare changes
  • Side-by-side
  • Inline

Files

@@ -236,15 +236,18 @@ public class RetrieveFullEntityTransaction extends BackendTransaction {
if (this.subject != null) {
System.out.println(((Principal) this.subject.getPrincipal()).getUsername());
// final EntityInterface e =
// execute(new RetrieveSparseEntity(q.getKey(), null), query.getAccess()).getEntity();
// check whether the referenced entity may be retrieved
// recursion! (Only for the matching selections)
retrieveFullEntity(ref, getSubSelects(selections, propertyName));
final EntityACL entityACL = ref.getEntityACL();
if (!entityACL.isPermitted(this.subject, EntityPermission.RETRIEVE_ENTITY)) {
return;
}
value.setEntity(ref, true);
}
// recursion! (Only for the matching selections)
retrieveFullEntity(ref, getSubSelects(selections, propertyName));
value.setEntity(ref, true);
}
/**
Loading