From cc40d47d2a0281cbb90ad1f30ddfc67e75df9c6b Mon Sep 17 00:00:00 2001 From: Jiajing LIANG Date: Wed, 13 Dec 2017 13:19:27 +0100 Subject: [PATCH] fix inCompartment for a collection of owners --- .../ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java b/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java index 0af81b4afc8..bf97eda5cab 100644 --- a/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java +++ b/hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/RuleBuilder.java @@ -275,6 +275,8 @@ public class RuleBuilder implements IAuthRuleBuilder { for (IIdType next : theOwners) { validateOwner(next); } + myInCompartmentName = theCompartmentName; + myInCompartmentOwners = theOwners; myClassifierType = ClassifierTypeEnum.IN_COMPARTMENT; return finished(); }