Add brackets

This commit is contained in:
Ajay Ramachandran 2021-06-18 18:49:37 -04:00 committed by GitHub
parent b84241c6ad
commit 183462ff85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;