1
0
Fork 0

wip(backend): more person routes

This commit is contained in:
joostdecock 2022-11-12 21:19:04 +01:00
parent 1ff6c4b9eb
commit bc5a605c9b
3 changed files with 71 additions and 18 deletions

View file

@ -319,8 +319,8 @@ UserModel.prototype.safeUpdate = async function (data) {
* so we can't be certain it's safe
*/
UserModel.prototype.unsafeUpdate = async function (body) {
if (user.level < 3) return this.setResponse(403, 'insufficientAccessLevel')
const data = {}
const notes = []
// Bio
if (typeof body.bio === 'string') data.bio = body.bio
// Consent