func ensureIsManagerOrAdmin() gin.HandlerFunc {
	return func(c *gin.Context) {
		a, _ := c.Get("role")
		role := a.(string)
		if role != string(Admin) && role != string(Manager) {
			//Redirection when is NOT admin or Manager
			fmt.Println("Redirecting to /dashboard from ensureIsManagerOrAdmin")
			c.Redirect(http.StatusFound, "/dashboard")
		}
	}
}
// Ensures that the user is an Admin or a Manager
Ensures that the user is an Admin or a Manager
// Ensures that the user is an Admin or a Manager
func ensureIsManagerOrAdmin() gin.HandlerFunc {
	return func(c *gin.Context) {
		a, _ := c.Get("role")
		role := a.(string)
		if role != string(Admin) && role != string(Manager) {
			fmt.Println("Redirecting to /dashboard from ensureIsManagerOrAdmin")
			c.Redirect(http.StatusFound, "/dashboard")
		}
	}
}
func ensureIsManagerOrAdmin ( ) gin . HandlerFunc { return func ( c * gin . Context ) { a , _ := c . Get ( " " ) role := a . ( string ) if role != string ( Admin ) && role != string ( Manager ) { fmt . Println ( " " ) c . Redirect ( http . StatusFound , " " ) } } }
Ensures that the user is an Admin or a Manager
Ensures that the user is an Admin or a Manager
//Redirection when is NOT admin or Manager