mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Remove old permission workaround
This commit is contained in:
parent
f6f83fcbe4
commit
30bac658ed
1 changed files with 1 additions and 10 deletions
|
@ -31,16 +31,7 @@ export async function canSubmit(userID: HashedUserID, category: Category): Promi
|
|||
};
|
||||
default:
|
||||
return {
|
||||
canSubmit: await oneOf([isUserVIP(userID),
|
||||
(async () => (await getReputation(userID)) > config.minReputationToSubmitFiller)(),
|
||||
hasFeature(userID, Feature.FillerSubmitter),
|
||||
(async () => (await db.prepare("get", `SELECT count(*) as "submissionCount" FROM "sponsorTimes" WHERE "userID" = ? AND category != 'filler' AND "timeSubmitted" < 1660096797000 LIMIT 1`, [userID], { useReplica: true }))?.submissionCount > 0)()
|
||||
]),
|
||||
reason: "Yes, it has been a week, please be patient. Unfortunately, someone is doing a targeted attack and as a temporary emergency measure, segment submission for new users is disabled. You can request submission access on chat.sponsor.ajay.app/#filler, discord.gg/SponsorBlock or matrix.to/#/#sponsor:ajay.app"
|
||||
canSubmit: true
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
canSubmit: true
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue