Skip to content

Commit

Permalink
Updated to use all auths on preinitialization for lookupuuid util (#2204
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ivakegg authored Dec 21, 2023
1 parent ed5d829 commit 8e26a4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public String getAuths(String logicName, MultivaluedMap<String,String> queryPara
QueryLogic<?> logic = queryLogicFactory.getQueryLogic(logicName, principal);
Query settings = createSettings(queryParameters);
if (queryAuths == null) {
logic.preInitialize(settings, AuthorizationsUtil.buildAuthorizations(null));
logic.preInitialize(settings, AuthorizationsUtil.buildAuthorizations(((DatawavePrincipal)principal).getAuthorizations()));
} else {
logic.preInitialize(settings, AuthorizationsUtil.buildAuthorizations(Collections.singleton(AuthorizationsUtil.splitAuths(queryAuths))));
}
Expand Down

0 comments on commit 8e26a4b

Please sign in to comment.