Fix auto blacklist

This commit is contained in:
Chocobozzz 2019-07-23 10:44:48 +02:00 committed by Chocobozzz
parent 3e753302d8
commit 7c421bb198
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ async function autoBlacklistNeeded (parameters: {
// Already blacklisted // Already blacklisted
if (video.VideoBlacklist) return false if (video.VideoBlacklist) return false
if (!CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED || !user) return false if (!CONFIG.AUTO_BLACKLIST.VIDEOS.OF_USERS.ENABLED || !user) return false
if (isRemote || isNew) return false if (isRemote || isNew === false) return false
if (user.hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) || user.hasAdminFlag(UserAdminFlag.BY_PASS_VIDEO_AUTO_BLACKLIST)) return false if (user.hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) || user.hasAdminFlag(UserAdminFlag.BY_PASS_VIDEO_AUTO_BLACKLIST)) return false