diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-25 13:55:28 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-25 13:55:28 +0200 |
commit | 2b4dd7e26d93c2d9bef4f365cb03c511eff4ca8f (patch) | |
tree | 5fe2982e0db8c1ccb661d5aa9c25b02c12590401 /server/helpers/custom-validators | |
parent | 47f6409bb8bc49a50027b9579bb651c0506b6912 (diff) | |
download | PeerTube-2b4dd7e26d93c2d9bef4f365cb03c511eff4ca8f.tar.gz PeerTube-2b4dd7e26d93c2d9bef4f365cb03c511eff4ca8f.tar.zst PeerTube-2b4dd7e26d93c2d9bef4f365cb03c511eff4ca8f.zip |
Fix optional privacy in upload endpoint
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r-- | server/helpers/custom-validators/users.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts index e3ad9102a..56bc10b16 100644 --- a/server/helpers/custom-validators/users.ts +++ b/server/helpers/custom-validators/users.ts | |||
@@ -1,10 +1,9 @@ | |||
1 | import 'express-validator' | 1 | import 'express-validator' |
2 | import * as validator from 'validator' | 2 | import * as validator from 'validator' |
3 | import { UserNotificationSettingValue, UserRole } from '../../../shared' | 3 | import { UserRole } from '../../../shared' |
4 | import { CONSTRAINTS_FIELDS, NSFW_POLICY_TYPES } from '../../initializers/constants' | 4 | import { CONSTRAINTS_FIELDS, NSFW_POLICY_TYPES } from '../../initializers/constants' |
5 | import { exists, isFileValid, isBooleanValid } from './misc' | 5 | import { exists, isBooleanValid, isFileValid } from './misc' |
6 | import { values } from 'lodash' | 6 | import { values } from 'lodash' |
7 | import { UserAdminFlag } from '../../../shared/models/users/user-flag.model' | ||
8 | 7 | ||
9 | const USERS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.USERS | 8 | const USERS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.USERS |
10 | 9 | ||