mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-18 11:04:22 +08:00
Make superadmins not be admins (#2615)
This commit is contained in:
parent
001442e75e
commit
f4a6f1673c
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ func CreateSuperAdmin(u *models.User) error {
|
|||
return errors.New("superadmin user already exists")
|
||||
}
|
||||
u.IsSuperAdmin = true
|
||||
u.IsAdmin = false
|
||||
return CreateUser(u)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue