cannot change ID and deleteat when trying to update the hook (#5784)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2017-03-16 17:26:15 +01:00
коммит произвёл George Goldberg
родитель 241f9e8888
Коммит 6a5f621f73

Просмотреть файл

@@ -215,6 +215,7 @@ func UpdateIncomingWebhook(oldHook, updatedHook *model.IncomingWebhook) (*model.
return nil, model.NewAppError("UpdateIncomingWebhook", "api.incoming_webhook.disabled.app_error", nil, "", http.StatusNotImplemented)
}
updatedHook.Id = oldHook.Id
updatedHook.UserId = oldHook.UserId
updatedHook.CreateAt = oldHook.CreateAt
updatedHook.UpdateAt = model.GetMillis()