fix permission app error with updatePost (#6749)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
ffaab0bf22
Коммит
f2abb9d8eb
@@ -302,6 +302,10 @@ func searchPosts(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func updatePost(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
c.RequirePostId()
|
||||
if c.Err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
post := model.PostFromJson(r.Body)
|
||||
|
||||
if post == nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user