index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
internal
/
route
/
org
/
org.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'internal/route/org/org.go')
-rw-r--r--
internal/route/org/org.go
2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/org/org.go b/internal/route/org/org.go
index 424cbd15..badd0d81 100644
--- a/
internal/route/org/org.go
+++ b/
internal/route/org/org.go
@@ -32,7 +32,7 @@ func CreatePost(c *context.Context, f form.CreateOrg) {
org := &db.User{
Name: f.OrgName,
IsActive: true,
- Type: db.UserOrganization,
+ Type: db.UserTypeOrganization,
}
if err := db.CreateOrganization(org, c.User); err != nil {