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 61a90d1 commit c158a4b
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 c158a4b

Please sign in to comment.