PLT-3702 Fixed outgoing webhook creation API to properly clear error flags for public channels (#3719)

Этот коммит содержится в:
Harrison Healey
2016-08-02 17:47:16 -04:00
коммит произвёл Joram Wilander
родитель c4a3118e9f
Коммит 790dd91e7d

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

@@ -209,6 +209,8 @@ func createOutgoingHook(c *Context, w http.ResponseWriter, r *http.Request) {
c.LogAudit("fail - bad channel permissions")
c.Err = model.NewLocAppError("createOutgoingHook", "api.webhook.create_outgoing.permissions.app_error", nil, "")
return
} else {
c.Err = nil
}
}
} else if len(hook.TriggerWords) == 0 {