diff -r ab93074e014b web/org.openbravo.mobile.core/source/component/ob-menu.js
--- a/web/org.openbravo.mobile.core/source/component/ob-menu.js	Wed Jun 28 11:09:08 2017 +0200
+++ b/web/org.openbravo.mobile.core/source/component/ob-menu.js	Mon Sep 04 14:50:17 2017 +0200
@@ -212,8 +212,8 @@
       }
     }
 
-    if (!OB.MobileApp.model.hasPermission(this.route)) {
-      OB.UTIL.showConfirmation.display(OB.I18N.getLabel('OBMOBC_NotAllowed'), OB.I18N.getLabel('OBMOBC_AccessNotAllowed', [this.route]));
+    if (!OB.MobileApp.model.hasPermission(this.permission)) {
+      OB.UTIL.showConfirmation.display(OB.I18N.getLabel('OBMOBC_NotAllowed'), OB.I18N.getLabel('OBMOBC_AccessNotAllowed', [this.permission]));
       return true;
     }
 
diff -r ab93074e014b web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
--- a/web/org.openbravo.mobile.core/source/model/ob-terminal-model.js	Wed Jun 28 11:09:08 2017 +0200
+++ b/web/org.openbravo.mobile.core/source/model/ob-terminal-model.js	Mon Sep 04 14:50:17 2017 +0200
@@ -1646,8 +1646,8 @@
         //If destination window has permission, check if user is allowed to navigate
         //if not, navigate to main window
         if (destinationWindow.permission) {
-          if (!OB.MobileApp.model.hasPermission(windowName)) {
-            OB.UTIL.showConfirmation.display(OB.I18N.getLabel('OBMOBC_NotAllowed'), OB.I18N.getLabel('OBMOBC_AccessNotAllowed', [windowName]), null, {
+          if (!OB.MobileApp.model.hasPermission(destinationWindow.permission)) {
+            OB.UTIL.showConfirmation.display(OB.I18N.getLabel('OBMOBC_NotAllowed'), OB.I18N.getLabel('OBMOBC_AccessNotAllowed', [destinationWindow.permission]), null, {
               onHideFunction: function () {
                 OB.MobileApp.model.navigate(defaultRoute);
               }
