mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add ability for admins to set default p2p policy
This commit is contained in:
parent
c77fdc605b
commit
a9bfa85d2c
59 changed files with 789 additions and 415 deletions
|
@ -15,6 +15,7 @@ import {
|
|||
isUserDisplayNameValid,
|
||||
isUserNoModal,
|
||||
isUserNSFWPolicyValid,
|
||||
isUserP2PEnabledValid,
|
||||
isUserPasswordValid,
|
||||
isUserPasswordValidOrEmpty,
|
||||
isUserRoleValid,
|
||||
|
@ -239,6 +240,9 @@ const usersUpdateMeValidator = [
|
|||
body('autoPlayVideo')
|
||||
.optional()
|
||||
.custom(isUserAutoPlayVideoValid).withMessage('Should have a valid automatically plays video attribute'),
|
||||
body('p2pEnabled')
|
||||
.optional()
|
||||
.custom(isUserP2PEnabledValid).withMessage('Should have a valid p2p enabled boolean'),
|
||||
body('videoLanguages')
|
||||
.optional()
|
||||
.custom(isUserVideoLanguages).withMessage('Should have a valid video languages attribute'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue