bug 11851: While adding new Vpn user, exisitng users state will remain as Active and still be re-added

status 11851: resolved fixed
This commit is contained in:
kishan 2011-11-04 13:47:05 +05:30
parent 5d47d024c1
commit f40dcbd82e
1 changed files with 0 additions and 8 deletions

View File

@ -397,14 +397,6 @@ public class RemoteAccessVpnManagerImpl implements RemoteAccessVpnService, Manag
List<VpnUserVO> users = _vpnUsersDao.listByAccount(vpnOwnerId);
//If user is in Active state, we still have to resend them therefore their status has to be Add
for (VpnUserVO user : users) {
if (user.getState() == State.Active) {
user.setState(State.Add);
_vpnUsersDao.update(user.getId(), user);
}
}
List<? extends RemoteAccessVpnElement> elements = _networkMgr.getRemoteAccessVpnElements();
boolean success = true;