Fixed inclusion of contexts in instaces

This commit is contained in:
Luca Frosini 2021-07-01 12:13:11 +02:00
parent cbc4c78efc
commit 1924cef56d
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ public class BaseRest {
boolean includeContexts = Boolean.valueOf(includeContextsBooleanString);
boolean i = includeContexts && isRequesterAllowedToRequestInstancesContexts();
if(i) {
logger.info("The request was performed in hierarchical mode and the requester is allowed. Going to set hierarchical mode.");
ContextUtility.getHierarchicalMode().set(i);
logger.info("The requet to include the contexts in header is allowed.");
ContextUtility.getIncludeInstanceContexts().set(true);
}
}
}catch (Throwable t) {