PLT-3702 Fixed outgoing webhook creation API to properly clear error flags for public channels (#3719)
Этот коммит содержится в:
коммит произвёл
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 {
|
||||
|
||||
Ссылка в новой задаче
Block a user