From cd756a97f4e6cd0f347d86522f49bb7e9a40a750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 28 Jul 2022 18:45:00 +0200 Subject: [PATCH] Add the creator of the board as a administrator of the board if it still belongs to the channel (#3454) --- .../sqlstore/migrations/000018_add_teams_and_boards.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/services/store/sqlstore/migrations/000018_add_teams_and_boards.up.sql b/server/services/store/sqlstore/migrations/000018_add_teams_and_boards.up.sql index bc582ae02..ba1454d19 100644 --- a/server/services/store/sqlstore/migrations/000018_add_teams_and_boards.up.sql +++ b/server/services/store/sqlstore/migrations/000018_add_teams_and_boards.up.sql @@ -302,7 +302,7 @@ INSERT INTO {{.prefix}}board_members ( SELECT B.Id, CM.UserId, CM.Roles, TRUE, TRUE, FALSE, FALSE FROM {{.prefix}}boards AS B INNER JOIN ChannelMembers as CM ON CM.ChannelId=B.channel_id - WHERE CM.SchemeAdmin=True + WHERE CM.SchemeAdmin=True OR (CM.UserId=B.created_by) ); {{end}}