Skip to content

Commit

Permalink
chore: add comment (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo authored Sep 28, 2023
1 parent 516520c commit 6c09fe6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Collection/Collection.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export class CollectionRouter extends Router {
const eth_address = req.auth.ethAddress
const canRequestCollections = await isCommitteeMember(eth_address)

// If the request is not coming from a committee member, it can only request the collections that are already published and using a search term
if (!canRequestCollections && !(q && isPublished === 'true')) {
throw new HTTPError(
'Unauthorized',
Expand Down

0 comments on commit 6c09fe6

Please sign in to comment.