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 committed Dec 21, 2023
1 parent 6c3a119 commit 148feaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,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, WSAuthorizationsUtil.buildAuthorizations(null));
logic.preInitialize(settings, WSAuthorizationsUtil.buildAuthorizations(((DatawavePrincipal)principal).getAuthorizations()));
} else {
logic.preInitialize(settings, WSAuthorizationsUtil.buildAuthorizations(Collections.singleton(WSAuthorizationsUtil.splitAuths(queryAuths))));
}
Expand Down

0 comments on commit 148feaa

Please sign in to comment.