feat: Added redirect after login for users.

This commit is contained in:
2025-05-24 11:27:12 +02:00
parent 432b4dc4e5
commit 4de7af4bc0
5 changed files with 29 additions and 20 deletions

View File

@@ -48,7 +48,7 @@ accsRouter.put('/:id', async (req, res)=> {
res.status(404).send("User not found")
return
}
if (req.body.flags != undefined) {
if (req.body.flags) {
if (adminCond(req.user.admin, Perms.Superadmin)) {
if (adminCond(user.admin, Perms.Superadmin)) {
res.status(400).send("Cannot edit other superadmins")