sum7/warehost
sum7
/
warehost
Archived
1
0
Fork 0

map id on select

This commit is contained in:
Martin Geno 2016-12-13 12:12:44 +01:00
parent 50fb96c200
commit 39d35857a1
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package host
import (
"fmt"
"net/http"
"strconv"
"strings"
@ -23,6 +24,7 @@ func getDomain(ctx context.Context, w http.ResponseWriter) (domain Domain, retur
w.WriteHeader(http.StatusBadRequest)
return
}
fmt.Println(id)
if login.Superadmin {
dbconnection.Where(map[string]int64{"ID": id}).Find(&domain)
} else {