mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-22 08:29:28 +08:00
Make superadmins not be admins (#2615)
This commit is contained in:

committed by
GitHub

parent
001442e75e
commit
f4a6f1673c
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user