Allow VIPs to submit locked categories

This commit is contained in:
Ajay Ramachandran
2020-09-19 13:59:34 -04:00
committed by GitHub
parent 5d731463f2
commit 689c0f7b31

View File

@@ -291,7 +291,7 @@ module.exports = async function postSkipSegments(req, res) {
}
// Reject segemnt if it's in the no segments list
if (noSegmentList.indexOf(segments[i].category) !== -1) {
if (!isVIP && noSegmentList.indexOf(segments[i].category) !== -1) {
// TODO: Do something about the fradulent submission
logger.warn("Caught a no-segment submission. userID: '" + userID + "', videoID: '" + videoID + "', category: '" + segments[i].category + "'");
res.status(403).send(