mirror of
https://github.com/mattermost/focalboard.git
synced 2025-02-01 19:14:35 +02:00
Add the creator of the board as a administrator of the board if it still belongs to the channel (#3454)
This commit is contained in:
parent
b9ac00ef4e
commit
cd756a97f4
@ -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}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user