1
0
Fork 0
forked from forgejo/forgejo
This commit is contained in:
Unknown 2014-07-04 22:43:39 -04:00
parent baa255e899
commit fd5412ec47
2 changed files with 30 additions and 43 deletions

View file

@ -6,6 +6,7 @@ package models
import (
"errors"
"os"
"strings"
"github.com/gogits/gogs/modules/base"
@ -97,6 +98,11 @@ func CreateOrganization(org, owner *User) (*User, error) {
return nil, err
}
if err = os.MkdirAll(UserPath(org.Name), os.ModePerm); err != nil {
sess.Rollback()
return nil, err
}
// Create default owner team.
t := &Team{
OrgId: org.Id,