fix: revert bugged PR

This commit is contained in:
Cassio Santos
2022-03-14 12:14:26 -03:00
committed by GitHub
parent d14d62ed96
commit cefdc5e9ec

View File

@@ -68,7 +68,7 @@ export const update = async (
req: Request,
res: Response
): Promise<Response> => {
if (req.user.profile !== "admin" && sessionUserId !== "user") {
if (req.user.profile !== "admin") {
throw new AppError("ERR_NO_PERMISSION", 403);
}