feat: restrict update flag endpoint (#46314)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Sem Bauke <semboot699@gmail.com>
pull/49064/head
Naomi Carrigan 2023-01-19 05:16:17 -08:00 committed by GitHub
parent df53c7778c
commit 193e03d286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -281,12 +281,6 @@ function handleInvalidUpdate(res) {
function updateUserFlag(req, res, next) {
const { user, body: update } = req;
const allowedKeys = [
'theme',
'sound',
'keyboardShortcuts',
'isHonest',
'portfolio',
'sendQuincyEmail',
'isGithub',
'isLinkedIn',
'isTwitter',