wip(backend): more person routes
This commit is contained in:
parent
1ff6c4b9eb
commit
bc5a605c9b
3 changed files with 71 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue