mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Add brackets
This commit is contained in:
parent
b84241c6ad
commit
183462ff85
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue