Update permissions.

This commit is contained in:
Brian Cao 2023-01-16 13:47:19 -08:00
parent f1db3d0451
commit dd2d9dc3f5
4 changed files with 5 additions and 6 deletions

View file

@ -17,7 +17,7 @@ export default async (req, res) => {
const { current_password, new_password } = req.body;
const { id: accountUuid } = req.query;
if (!(await allowQuery(req, TYPE_ACCOUNT))) {
if (!(await allowQuery(req, TYPE_ACCOUNT, false))) {
return unauthorized(res);
}