Skip to content

Commit

Permalink
Updated to use all auths on preinitialization for lookupuuid util
Browse files Browse the repository at this point in the history
  • Loading branch information
ivakegg committed Dec 21, 2023
1 parent ed5d829 commit 55b4e51
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 55b4e51

Please sign in to comment.