Merge 5789b9435fda
This commit is contained in:
commit
771d092e5f
|
@ -142,6 +142,8 @@ public class AbstractService {
|
||||||
return "Error logging in - org not allowed for this role";
|
return "Error logging in - org not allowed for this role";
|
||||||
|
|
||||||
KeyNamePair[] warehouses = login.getWarehouses(new KeyNamePair(loginRequest.getOrgID(), ""));
|
KeyNamePair[] warehouses = login.getWarehouses(new KeyNamePair(loginRequest.getOrgID(), ""));
|
||||||
|
if (warehouses != null)
|
||||||
|
{
|
||||||
boolean okwh = false;
|
boolean okwh = false;
|
||||||
for (KeyNamePair warehouse : warehouses) {
|
for (KeyNamePair warehouse : warehouses) {
|
||||||
if (warehouse.getKey() == loginRequest.getWarehouseID()) {
|
if (warehouse.getKey() == loginRequest.getWarehouseID()) {
|
||||||
|
@ -151,6 +153,7 @@ public class AbstractService {
|
||||||
}
|
}
|
||||||
if (!okwh)
|
if (!okwh)
|
||||||
return "Error logging in - warehouse not allowed for this org";
|
return "Error logging in - warehouse not allowed for this org";
|
||||||
|
}
|
||||||
|
|
||||||
String error = login.validateLogin(orglogin);
|
String error = login.validateLogin(orglogin);
|
||||||
if (error != null && error.length() > 0)
|
if (error != null && error.length() > 0)
|
||||||
|
|
Loading…
Reference in New Issue