mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-25 09:50:24 +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")
|
return errors.New("superadmin user already exists")
|
||||||
}
|
}
|
||||||
u.IsSuperAdmin = true
|
u.IsSuperAdmin = true
|
||||||
|
u.IsAdmin = false
|
||||||
return CreateUser(u)
|
return CreateUser(u)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user