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
parent
df53c7778c
commit
193e03d286
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue