PLT-1909 Removed the ability to edit system posts (#3013)
* Removed the ability to edit system posts * Added increased timeout to SpinnerButton unit tests
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
5580c28e54
Коммит
0fe75cb782
@@ -919,6 +919,12 @@ func updatePost(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
c.Err.StatusCode = http.StatusForbidden
|
||||
return
|
||||
}
|
||||
|
||||
if oldPost.IsSystemMessage() {
|
||||
c.Err = model.NewLocAppError("updatePost", "api.post.update_post.system_message.app_error", nil, "id="+post.Id)
|
||||
c.Err.StatusCode = http.StatusForbidden
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
hashtags, _ := model.ParseHashtags(post.Message)
|
||||
|
||||
Ссылка в новой задаче
Block a user