Merge remote-tracking branch 'origin/AlexTester' into gruppDM
This commit is contained in:
commit
c002f0e530
1 changed files with 57 additions and 57 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue