mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
ee fixes
This commit is contained in:
@@ -70,3 +70,10 @@ func InitializeNetUsers(network *models.Network) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetUserDefaults - sets the defaults of a user to avoid empty fields
|
||||
func SetUserDefaults(user *models.User) {
|
||||
if user.Groups == nil {
|
||||
user.Groups = []string{pro.DEFAULT_ALLOWED_GROUPS}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user