diff options
Diffstat (limited to 'server/helpers/custom-validators/users.ts')
-rw-r--r-- | server/helpers/custom-validators/users.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts index 90fc74a48..1cb5e5b0f 100644 --- a/server/helpers/custom-validators/users.ts +++ b/server/helpers/custom-validators/users.ts | |||
@@ -42,6 +42,10 @@ function isUserNSFWPolicyValid (value: any) { | |||
42 | return exists(value) && nsfwPolicies.indexOf(value) !== -1 | 42 | return exists(value) && nsfwPolicies.indexOf(value) !== -1 |
43 | } | 43 | } |
44 | 44 | ||
45 | function isUserWebTorrentEnabledValid (value: any) { | ||
46 | return isBooleanValid(value) | ||
47 | } | ||
48 | |||
45 | function isUserAutoPlayVideoValid (value: any) { | 49 | function isUserAutoPlayVideoValid (value: any) { |
46 | return isBooleanValid(value) | 50 | return isBooleanValid(value) |
47 | } | 51 | } |
@@ -78,6 +82,7 @@ export { | |||
78 | isUserUsernameValid, | 82 | isUserUsernameValid, |
79 | isUserEmailVerifiedValid, | 83 | isUserEmailVerifiedValid, |
80 | isUserNSFWPolicyValid, | 84 | isUserNSFWPolicyValid, |
85 | isUserWebTorrentEnabledValid, | ||
81 | isUserAutoPlayVideoValid, | 86 | isUserAutoPlayVideoValid, |
82 | isUserDisplayNameValid, | 87 | isUserDisplayNameValid, |
83 | isUserDescriptionValid, | 88 | isUserDescriptionValid, |