1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-26 09:09:36 -05:00
This commit is contained in:
Unknwon 2015-08-07 00:09:28 +08:00
parent d922b7e504
commit b1f08d3218

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)