Skip to content

Commit

Permalink
fix add-on auth
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 1, 2024
1 parent 8d2aac6 commit c3c43aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v2/tools/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function expressAuthentication(
const idOrSlug = request.params.id_or_slug;
if (isSlug(idOrSlug)) {
const addon: Addon = (await addonService.getAddonFromSlugOrId(idOrSlug))[1];
if (addon.authors.includes(discordID)) return true;
if (addon.authors.includes(discordID)) return discordID;
}
// if it's a status continue to role checks
}
Expand Down

0 comments on commit c3c43aa

Please sign in to comment.