mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-07 21:54:54 +08:00
add default global roles to admin users
This commit is contained in:
parent
178157cf1c
commit
e6656209f9
1 changed files with 1 additions and 0 deletions
|
@ -305,6 +305,7 @@ func UpdateUser(userchange, user *models.User) (*models.User, error) {
|
|||
}
|
||||
user.UserGroups = userchange.UserGroups
|
||||
user.NetworkRoles = userchange.NetworkRoles
|
||||
AddGlobalNetRolesToAdmins(*user)
|
||||
err := ValidateUser(user)
|
||||
if err != nil {
|
||||
return &models.User{}, err
|
||||
|
|
Loading…
Add table
Reference in a new issue