Merge remote-tracking branch 'origin/AlexTester' into gruppDM

This commit is contained in:
Davenludd 2024-03-28 12:19:45 +01:00
commit c002f0e530

View file

@ -219,7 +219,7 @@ func (gs *GState) IsProjectManagerHandler(c *fiber.Ctx) error {
username := claims["name"].(string)
// Extract necessary parameters from the request query string
projectName := c.Params("projectName")
projectName := c.Query("projectName")
log.Info("Checking if user ", username, " is a project manager for project ", projectName)
@ -231,7 +231,7 @@ func (gs *GState) IsProjectManagerHandler(c *fiber.Ctx) error {
}
// Return the result as JSON
return c.JSON(fiber.Map{"isProjectManager": isManager})
return c.JSON(map[string]bool{"isProjectManager": isManager})
}
func (gs *GState) GetProjectTimesHandler(c *fiber.Ctx) error {