add organization access to clients
This commit is contained in:
@@ -80,7 +80,7 @@ export async function updateUserHandler(
|
||||
const { userId } = req.params as { userId: string };
|
||||
|
||||
try {
|
||||
const updatedUser = await updateUser(userId, input);
|
||||
const updatedUser = await updateUser(userId, input, req.user);
|
||||
if (!updateUser) return res.code(404).send({ error: "resource not found" });
|
||||
|
||||
return res.code(200).send(updatedUser);
|
||||
|
||||
Reference in New Issue
Block a user