Skip to content
Snippets Groups Projects
Commit 9b088c44 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

wip

parent 73494876
No related branches found
No related tags found
2 merge requests!111Release 0.12.1,!109F select acl
Pipeline #44389 failed
caosdb-webui @ e6fef9f3
Subproject commit d5f9090eca25a92fc44dbeeba305768e8d9f4bcb
Subproject commit e6fef9f35da49dfea5b11f99b872d15c35fd043d
......@@ -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);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment