Set Visibility Public by default when creating new organization

This commit is contained in:
Remy Boulanouar 2017-05-19 17:02:29 +02:00
parent c2a75b3762
commit 4df763c3b1

View File

@ -125,6 +125,7 @@ func CreateOrganization(org, owner *User) (err error) {
org.NumTeams = 1
org.NumMembers = 1
org.Type = UserTypeOrganization
org.Visibility = VisibleTypePublic
sess := x.NewSession()
defer sessionRelease(sess)