Skip to content

Commit

Permalink
Add the creator of the board as a administrator of the board if it st…
Browse files Browse the repository at this point in the history
…ill belongs to the channel (mattermost-community#3454)
  • Loading branch information
jespino authored Jul 28, 2022
1 parent b9ac00e commit cd756a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand Down

0 comments on commit cd756a9

Please sign in to comment.