moved ee check out of ce

This commit is contained in:
0xdcarns 2022-11-09 14:35:26 -05:00 committed by Matthew R. Kasun
parent ea4beb34f4
commit b7ae6c6d35

View file

@ -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