mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Add brackets
This commit is contained in:
committed by
GitHub
parent
b84241c6ad
commit
183462ff85
@@ -33,7 +33,7 @@ export async function postClearCache(req: Request, res: Response) {
|
||||
const hashedVideoID: VideoIDHash = getHash(videoID, 1);
|
||||
|
||||
// Ensure user is a VIP
|
||||
if (!await isUserVIP(hashedUserID)){
|
||||
if (!(await isUserVIP(hashedUserID))){
|
||||
Logger.warn("Permission violation: User " + hashedUserID + " attempted to clear cache for video " + videoID + ".");
|
||||
res.status(403).json({"message": "Not a VIP"});
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user