1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-11 18:13:52 +02:00

make board private when created from template (#2821)

This commit is contained in:
Scott Bishel 2022-04-15 11:27:21 -06:00 committed by GitHub
parent 154c344077
commit 5723709605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,11 @@ func (s *SQLStore) duplicateBoard(db sq.BaseRunner, boardID string, userID strin
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
// if original board is template
// make new board private
if board.IsTemplate {
board.Type = "P"
}
board.IsTemplate = asTemplate board.IsTemplate = asTemplate
board.CreatedBy = userID board.CreatedBy = userID