mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 00:44:15 -05:00
more on #1443
This commit is contained in:
parent
d922b7e504
commit
b1f08d3218
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ func CreateUser(u *User) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Auto-set admin for the first user.
|
// Auto-set admin for the first user.
|
||||||
if countUsers(sess) == 1 {
|
if CountUsers() == 1 {
|
||||||
u.IsAdmin = true
|
u.IsAdmin = true
|
||||||
u.IsActive = true
|
u.IsActive = true
|
||||||
_, err = x.Id(u.Id).AllCols().Update(u)
|
_, err = x.Id(u.Id).AllCols().Update(u)
|
||||||
|
|
Loading…
Reference in a new issue