Cleanup
This commit is contained in:
parent
60e09175da
commit
f8691eb180
@ -53,14 +53,14 @@ func WriteArticle(c *b.Config, db *b.DB, s map[string]*Session) http.HandlerFunc
|
||||
return
|
||||
}
|
||||
|
||||
data := &EditorHTMLData{Action: "submit", ArticleUsers: make(map[string]*ArticleUser)}
|
||||
|
||||
users, err := db.GetAllUsers(c)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
|
||||
data := &EditorHTMLData{Action: "submit", ArticleUsers: make(map[string]*ArticleUser)}
|
||||
for _, user := range users {
|
||||
data.ArticleUsers[fmt.Sprint(user.LastName, user.FirstName, user.ID)] = &ArticleUser{User: user, ArticleRole: None}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user