Browse Source

more on #1443

tags/v1.2.0-rc1
Unknwon 10 years ago
parent
commit
af9ff6b1a2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user.go

+ 1
- 1
models/user.go View File

@@ -315,7 +315,7 @@ func CreateUser(u *User) (err error) {
}

// Auto-set admin for the first user.
if countUsers(sess) == 1 {
if CountUsers() == 1 {
u.IsAdmin = true
u.IsActive = true
_, err = x.Id(u.Id).AllCols().Update(u)


Loading…
Cancel
Save