Been too long since i did anything, can't remember what the hell is in all this....
This commit is contained in:
@@ -20,7 +20,7 @@ func BuildTemplateData(db *sql.DB, w http.ResponseWriter, r *http.Request) model
|
||||
|
||||
switch v := session.Values["user_id"].(type) {
|
||||
case int:
|
||||
user = models.GetUserByID(v)
|
||||
user = models.GetUserByID(v) // ToDo should be storage not models
|
||||
case int64:
|
||||
user = models.GetUserByID(int(v))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user