mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-07 05:34:38 +08:00
set networkuser access level
This commit is contained in:
parent
255e400be8
commit
42f0af85b6
1 changed files with 3 additions and 1 deletions
|
@ -140,7 +140,9 @@ func CreateUser(user models.User) (models.User, error) {
|
|||
|
||||
// legacy
|
||||
if StringSliceContains(user.Networks, currentNets[i].NetID) {
|
||||
newUser.AccessLevel = pro.NET_ADMIN
|
||||
if !Is_EE {
|
||||
newUser.AccessLevel = pro.NET_ADMIN
|
||||
}
|
||||
}
|
||||
userErr := pro.CreateNetworkUser(¤tNets[i], &newUser)
|
||||
if userErr != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue