mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-12 09:04:14 +02:00
make all duplicated boards private (#2823)
This commit is contained in:
parent
5723709605
commit
a2e7deba84
@ -141,11 +141,8 @@ func (s *SQLStore) duplicateBoard(db sq.BaseRunner, boardID string, userID strin
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
// if original board is template
|
||||
// make new board private
|
||||
if board.IsTemplate {
|
||||
board.Type = "P"
|
||||
}
|
||||
board.Type = "P"
|
||||
board.IsTemplate = asTemplate
|
||||
board.CreatedBy = userID
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user