details: https://code.openbravo.com/erp/devel/pi/rev/22cf29c433bb
changeset: 20499:22cf29c433bb
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Thu May 30 13:35:55 2013 +0200
summary: Fixed issue 23946. The backend restriction will not be checked if
there is no way to retrieve the role.
diffstat:
src/index.jsp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e614965c64cc -r 22cf29c433bb src/index.jsp
--- a/src/index.jsp Thu May 30 16:13:40 2013 +0530
+++ b/src/index.jsp Thu May 30 13:35:55 2013 +0200
@@ -177,7 +177,7 @@
}else{
role = OBDal.getInstance().get(Role.class, vars1.getRole());
}
-if(role.isRestrictbackend()){
+if(role !=null && role.isRestrictbackend()){
%>
document.body.removeChild(document.getElementById('OBLoadingDiv'));
isc.Dialog.create({message: OB.I18N.getLabel('OBUIAPP_RestrictedUser'),
title: OB.I18N.getLabel('OBUIAPP_RestrictedUserTitle'), showCloseButton:
false}).show();
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits