mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +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
|
@ -183,6 +183,7 @@ async function createUser (req: express.Request, res: express.Response) {
|
|||
password: body.password,
|
||||
email: body.email,
|
||||
nsfwPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY,
|
||||
p2pEnabled: CONFIG.DEFAULTS.P2P.ENABLED,
|
||||
autoPlayVideo: true,
|
||||
role: body.role,
|
||||
videoQuota: body.videoQuota,
|
||||
|
@ -232,6 +233,7 @@ async function registerUser (req: express.Request, res: express.Response) {
|
|||
password: body.password,
|
||||
email: body.email,
|
||||
nsfwPolicy: CONFIG.INSTANCE.DEFAULT_NSFW_POLICY,
|
||||
p2pEnabled: CONFIG.DEFAULTS.P2P.ENABLED,
|
||||
autoPlayVideo: true,
|
||||
role: UserRole.USER,
|
||||
videoQuota: CONFIG.USER.VIDEO_QUOTA,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue