Skip to content

Commit

Permalink
[backend] Public TAXII collection does not take into account filters (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-julien committed Oct 24, 2023
1 parent c863791 commit 3ce31ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions opencti-platform/opencti-graphql/src/http/httpTaxii.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ const extractUserAndCollection = async (context, req, res, id) => {
throw ForbiddenAccess();
}
if (findCollection.taxii_public) {
const collection = restBuildCollection(findCollection);
return { user: SYSTEM_USER, collection };
return { user: SYSTEM_USER, collection: findCollection };
}
const authUser = await extractUserFromRequest(context, req, res);
const userCollection = await getCollectionById(context, authUser, id);
Expand Down

0 comments on commit 3ce31ff

Please sign in to comment.