Merge branch 'dev' into gruppDM
This commit is contained in:
commit
90d24ad7c4
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ func GetStatistics(c *fiber.Ctx) error {
|
||||||
return c.Status(403).SendString("Unauthorized access")
|
return c.Status(403).SendString("Unauthorized access")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if pm && userNameParam != "" {
|
||||||
|
username = userNameParam
|
||||||
|
}
|
||||||
|
|
||||||
// Retrieve statistics for the project from the database
|
// Retrieve statistics for the project from the database
|
||||||
statistics, err := db.GetDb(c).ReportStatistics(username, projectName)
|
statistics, err := db.GetDb(c).ReportStatistics(username, projectName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue