You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-09-16 08:56:19 +02:00
make board private when created from template (#2821)
This commit is contained in:
@@ -141,6 +141,11 @@ 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.IsTemplate = asTemplate
|
||||
board.CreatedBy = userID
|
||||
|
||||
|
Reference in New Issue
Block a user