Bug fix
This commit is contained in:
parent
f8691eb180
commit
88776337e4
@ -60,7 +60,7 @@ func WriteArticle(c *b.Config, db *b.DB, s map[string]*Session) http.HandlerFunc
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
data := &EditorHTMLData{Action: "submit", ArticleUsers: make(map[string]*ArticleUser)}
|
data := &EditorHTMLData{Action: "submit", Article: new(b.Article), ArticleUsers: make(map[string]*ArticleUser)}
|
||||||
for _, user := range users {
|
for _, user := range users {
|
||||||
data.ArticleUsers[fmt.Sprint(user.LastName, user.FirstName, user.ID)] = &ArticleUser{User: user, ArticleRole: None}
|
data.ArticleUsers[fmt.Sprint(user.LastName, user.FirstName, user.ID)] = &ArticleUser{User: user, ArticleRole: None}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user