From a9bfa85d2cdf13670aaced740da5b493fbeddfce Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Dec 2021 15:58:10 +0100 Subject: Add ability for admins to set default p2p policy --- server/helpers/custom-validators/users.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers/custom-validators') diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts index f52c60b60..badf171d2 100644 --- a/server/helpers/custom-validators/users.ts +++ b/server/helpers/custom-validators/users.ts @@ -49,7 +49,7 @@ function isUserNSFWPolicyValid (value: any) { return exists(value) && nsfwPolicies.includes(value) } -function isUserWebTorrentEnabledValid (value: any) { +function isUserP2PEnabledValid (value: any) { return isBooleanValid(value) } @@ -109,7 +109,7 @@ export { isUserAdminFlagsValid, isUserEmailVerifiedValid, isUserNSFWPolicyValid, - isUserWebTorrentEnabledValid, + isUserP2PEnabledValid, isUserAutoPlayVideoValid, isUserAutoPlayNextVideoValid, isUserAutoPlayNextVideoPlaylistValid, -- cgit v1.2.3