Merge branch 'dev' of github.com:imbus64/TTime into dev

This commit is contained in:
Imbus 2024-03-20 17:10:16 +01:00
commit 154c2240c8

View file

@ -256,7 +256,7 @@ func (gs *GState) ChangeUserName(c *fiber.Ctx) error {
return c.Status(500).SendString(err.Error()) return c.Status(500).SendString(err.Error())
} else if !ismanager { } else if !ismanager {
log.Warn("tried changing name when not projectmanager:", err) log.Warn("tried changing name when not projectmanager:", err)
return c.Status(401).SendString("you can not change name when not projectManager") return c.Status(401).SendString("you can not change name when not projectmanager")
} }
// Change the user's name within the project in the database // Change the user's name within the project in the database