MM-26793 Fix accidentally removing other users' favorites (#14988)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
302e59a0fe
Коммит
7910e237b9
@@ -3846,6 +3846,7 @@ func (s SqlChannelStore) UpdateSidebarCategories(userId, teamId string, categori
|
||||
// Remove any old favorites
|
||||
sql, args, _ := s.getQueryBuilder().Delete("Preferences").Where(
|
||||
sq.Eq{
|
||||
"UserId": userId,
|
||||
"Name": originalCategory.Channels,
|
||||
"Category": model.PREFERENCE_CATEGORY_FAVORITE_CHANNEL,
|
||||
},
|
||||
|
||||
Ссылка в новой задаче
Block a user