mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-10640 Set EnableUserCreation to true by default (#8815)
* Set EnableUserCreation to true by default * Fix argument type to FormatBool * Convert EnableUserCreation instances to pointer * Convert to boolean in tests also * Set value of pointer to be false * Convert remaining EnableUserCreation instances to pointer
This commit is contained in:
committed by
Harrison Healey
parent
c6cbce6100
commit
d3ead7dc85
@@ -980,7 +980,7 @@ type TeamSettings struct {
|
||||
SiteName string
|
||||
MaxUsersPerTeam *int
|
||||
EnableTeamCreation *bool
|
||||
EnableUserCreation bool
|
||||
EnableUserCreation *bool
|
||||
EnableOpenServer *bool
|
||||
RestrictCreationToDomains string
|
||||
EnableCustomBrand *bool
|
||||
@@ -1111,6 +1111,11 @@ func (s *TeamSettings) SetDefaults() {
|
||||
if s.EnableTeamCreation == nil {
|
||||
s.EnableTeamCreation = NewBool(true)
|
||||
}
|
||||
|
||||
if s.EnableUserCreation == nil {
|
||||
s.EnableUserCreation = NewBool(true)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
type ClientRequirements struct {
|
||||
|
||||
Reference in New Issue
Block a user