diff options
Diffstat (limited to 'server/controllers/api/users')
-rw-r--r-- | server/controllers/api/users/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index c3190e731..5911d1a0f 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts | |||
@@ -327,6 +327,7 @@ async function updateUser (req: express.Request, res: express.Response) { | |||
327 | if (body.videoQuotaDaily !== undefined) userToUpdate.videoQuotaDaily = body.videoQuotaDaily | 327 | if (body.videoQuotaDaily !== undefined) userToUpdate.videoQuotaDaily = body.videoQuotaDaily |
328 | if (body.role !== undefined) userToUpdate.role = body.role | 328 | if (body.role !== undefined) userToUpdate.role = body.role |
329 | if (body.adminFlags !== undefined) userToUpdate.adminFlags = body.adminFlags | 329 | if (body.adminFlags !== undefined) userToUpdate.adminFlags = body.adminFlags |
330 | if (body.pluginAuth !== undefined) userToUpdate.pluginAuth = body.pluginAuth | ||
330 | 331 | ||
331 | const user = await userToUpdate.save() | 332 | const user = await userToUpdate.save() |
332 | 333 | ||