MM-11728: Avoid Archived channels editions throught Patch (#9335)
Этот коммит содержится в:
коммит произвёл
Carlos Tadeu Panato Junior
родитель
9f46512759
Коммит
72560311a2
@@ -463,6 +463,11 @@ func (s SqlChannelStore) Update(channel *model.Channel) store.StoreChannel {
|
||||
return store.Do(func(result *store.StoreResult) {
|
||||
channel.PreUpdate()
|
||||
|
||||
if channel.DeleteAt != 0 {
|
||||
result.Err = model.NewAppError("SqlChannelStore.Update", "store.sql_channel.update.archived_channel.app_error", nil, "", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
if result.Err = channel.IsValid(); result.Err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user