fix: ignore blockade for authenticated users

This commit is contained in:
Yanlong Wang 2024-06-02 09:09:21 +08:00
parent 154d8ede45
commit be91371b93
No known key found for this signature in database
GPG Key ID: C0A623C0BADF9F37

View File

@ -645,7 +645,7 @@ ${suffixMixins.length ? `\n${suffixMixins.join('\n\n')}\n` : ''}`;
.limit(1)
))[0];
if (blockade) {
if (blockade && !uid) {
throw new SecurityCompromiseError(`Domain ${urlToCrawl.hostname} blocked until ${blockade.expireAt || 'Eternally'} due to previous abuse found on ${blockade.triggerUrl || 'site'}: ${blockade.triggerReason}`);
}