mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
moved ee check out of ce
This commit is contained in:
parent
c78b15186c
commit
f236686beb
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ func UserPermissions(reqAdmin bool, netname string, token string) ([]string, str
|
|||
if len(netname) > 0 && (!authenticateNetworkUser(netname, userNetworks) || len(userNetworks) == 0) {
|
||||
return nil, username, Unauthorized_Err
|
||||
}
|
||||
if !pro.IsUserNetAdmin(netname, username) {
|
||||
if isEE && !pro.IsUserNetAdmin(netname, username) {
|
||||
return nil, "", Unauthorized_Err
|
||||
}
|
||||
return userNetworks, username, nil
|
||||
|
|
Loading…
Reference in a new issue