Skip to content

Commit 30bac65

Browse files
committed
Remove old permission workaround
1 parent f6f83fc commit 30bac65

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/utils/permissions.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,7 @@ export async function canSubmit(userID: HashedUserID, category: Category): Promi
3131
};
3232
default:
3333
return {
34-
canSubmit: await oneOf([isUserVIP(userID),
35-
(async () => (await getReputation(userID)) > config.minReputationToSubmitFiller)(),
36-
hasFeature(userID, Feature.FillerSubmitter),
37-
(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)()
38-
]),
39-
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"
34+
canSubmit: true
4035
};
4136
}
42-
43-
return {
44-
canSubmit: true
45-
};
4637
}

0 commit comments

Comments
 (0)