refactor(scanner): finished login stuff for current routes
This commit is contained in:
@@ -263,6 +263,10 @@ r.patch("/user/:id", requireAuth, async (req, res) => {
|
||||
updates.active = req.body.active;
|
||||
}
|
||||
|
||||
if (req.body?.excludedCommand !== undefined) {
|
||||
updates.excludedCommand = req.body.excludedCommand;
|
||||
}
|
||||
|
||||
if (req.body?.role !== undefined) {
|
||||
updates.role = req.body.role;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user