New setting delegated_qa to store QA managers

This commit is contained in:
nemunaire 2023-07-25 09:04:31 +02:00
commit d2f409db7a
11 changed files with 148 additions and 20 deletions

View file

@ -10,8 +10,11 @@ import (
"github.com/gin-gonic/gin"
)
var Simulator string
var TeamsDir string
var (
Simulator string
TeamsDir string
ManagerUsers []string
)
func authMiddleware(access ...func(string, int64, *gin.Context) bool) gin.HandlerFunc {
return func(c *gin.Context) {
@ -50,6 +53,7 @@ func authMiddleware(access ...func(string, int64, *gin.Context) bool) gin.Handle
c.Set("LoggedTeam", teamid)
// We are now ready to continue
c.Next()
}
}