Fix auto blacklist
This commit is contained in:
parent
3e753302d8
commit
7c421bb198
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue