mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 22:47:12 +03:00
Add clearer chapter permission error
This commit is contained in:
@@ -27,7 +27,8 @@ export async function canSubmit(userID: HashedUserID, category: Category): Promi
|
|||||||
lowDownvotes(userID),
|
lowDownvotes(userID),
|
||||||
(async () => (await getReputation(userID)) > config.minReputationToSubmitChapter)(),
|
(async () => (await getReputation(userID)) > config.minReputationToSubmitChapter)(),
|
||||||
hasFeature(userID, Feature.ChapterSubmitter)
|
hasFeature(userID, Feature.ChapterSubmitter)
|
||||||
])
|
]),
|
||||||
|
reason: "Submitting chapters requires a minimum reputation. You can ask on Discord/Matrix to get permission with less reputation."
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user