diff options
author | SagePtr <sageptr@gmail.com> | 2018-09-07 02:40:58 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-09-06 20:40:58 -0400 |
commit | 303d7f7e9cfadf92e37dc44fb7f7c08164637773 (patch) | |
tree | a4cde3f54498dbec58baabec9675b3721db1b6f4 /models/org.go | |
parent | 3c6cc56143d6ef4b12c0c9c998951c2f66bfbfd9 (diff) | |
download | gitea-303d7f7e9cfadf92e37dc44fb7f7c08164637773.tar.gz gitea-303d7f7e9cfadf92e37dc44fb7f7c08164637773.zip |
Do not autocreate directory for new user/orgs (#4828) (#4849)
Diffstat (limited to 'models/org.go')
-rw-r--r-- | models/org.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/models/org.go b/models/org.go index a62c67deb7..1cc25231e6 100644 --- a/models/org.go +++ b/models/org.go @@ -182,10 +182,6 @@ func CreateOrganization(org, owner *User) (err error) { return fmt.Errorf("insert team-user relation: %v", err) } - if err = os.MkdirAll(UserPath(org.Name), os.ModePerm); err != nil { - return fmt.Errorf("create directory: %v", err) - } - return sess.Commit() } |