Fixes Issue 0025176: It's possible to access web services even if the maximum allowed calls is exceeded
authorShankar Balachandran <shankar.balachandran@openbravo.com>
Tue, 03 Dec 2013 15:28:23 +0530
changeset 21783 a60184d93ff1
parent 21782 9453922898b4
child 21784 f49878862cba
Fixes Issue 0025176: It's possible to access web services even if the maximum allowed calls is exceeded

Checking whether web service call is allowed on all cases.
src/org/openbravo/service/web/BaseWebServiceServlet.java
--- a/src/org/openbravo/service/web/BaseWebServiceServlet.java	Sun Jan 12 13:50:17 2014 +0530
+++ b/src/org/openbravo/service/web/BaseWebServiceServlet.java	Tue Dec 03 15:28:23 2013 +0530
@@ -55,11 +55,6 @@
   @Override
   protected final void service(HttpServletRequest request, HttpServletResponse response)
       throws ServletException, IOException {
-    // already logged in?
-    if (OBContext.getOBContext() != null) {
-      doService(request, response);
-      return;
-    }
 
     // do the login action
     AuthenticationManager authManager = AuthenticationManager.getAuthenticationManager(this);