This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
more on
#1443
tags/v1.2.0-rc1
Unknwon
10 years ago
parent
b00338ca1d
commit
af9ff6b1a2
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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)
Write
Preview
Loading…
Cancel
Save