mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
moved ee check out of ce
This commit is contained in:
parent
ea4beb34f4
commit
b7ae6c6d35
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