Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040790Retail ModulesWeb POSpublic2019-05-06 11:152019-05-07 08:45
javietxe 
jorge-garcia 
immediatemajoralways
closedfixed 
5
 
RR19Q2RR19Q1.1 
marvintm
Production - QA Approved
2018-12-14
RR19Q1
https://code.openbravo.com/erp/devel/pi/rev/925d93d4e8971f34caf04cd2cad44223fa74bf3c [^]
No
0040790: User roles requires backend access to login in WebPOS
If the Role is marked with the configuration "Restrict backend access", when trying to login to the POS, the login is refused.

The error shown is:

Access Restricted This user doesn't have access to the backend. To be able to access Openbravo, a user needs a role with access to the backend.

See attached picture.
- Configure the user role to do login as "Restrict backend access"
- Try to login in the POS with a user of the previously configured role.
No tags attached.
blocks defect 0040787 closed alostale User roles requires backend access to login in WebPOS 
Issue History
2019-05-06 15:44alostaleTypedefect => backport
2019-05-06 15:44alostaleTarget Version => RR19Q2
2019-05-06 17:09jorge-garciaAssigned Toalostale => jorge-garcia
2019-05-06 17:23hgbotCheckin
2019-05-06 17:23hgbotNote Added: 0111512
2019-05-06 17:23hgbotStatusscheduled => resolved
2019-05-06 17:23hgbotResolutionopen => fixed
2019-05-06 17:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q2/rev/576a9489a3d5ac7daa8a2f36a2faefe68cee3c9b [^]
2019-05-06 17:23hgbotCheckin
2019-05-06 17:23hgbotNote Added: 0111513
2019-05-07 08:45marvintmReview Assigned To => marvintm
2019-05-07 08:45marvintmStatusresolved => closed
2019-05-07 08:45marvintmFixed in Version => RR19Q1.1

Notes
(0111512)
hgbot   
2019-05-06 17:23   
Repository: erp/backports/3.0PR19Q2
Changeset: 576a9489a3d5ac7daa8a2f36a2faefe68cee3c9b
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon May 06 16:53:40 2019 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR19Q2/rev/576a9489a3d5ac7daa8a2f36a2faefe68cee3c9b [^]

Fixed issue 40790: Roles require back-office access to log in to mobile apps

MobileLoginHandler does a back-office login to later select mobile default role,
it expects back-office to fail and keep session in case of restricted role login
attempt.

Back-office login handler was changed to fail and remove session in case there is
no back-office role in current user's list. This made not possible to log in to
mobile apps.

Now if logging in to a mobile application session is kept after failure as it was
before.

---
M src/org/openbravo/base/secureApp/LoginHandler.java
---
(0111513)
hgbot   
2019-05-06 17:23   
Repository: retail/backports/3.0RR19Q2/org.openbravo.mobile.core
Changeset: cdce691d9c7de1397f4c4923b170f2a9fe9107c4
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon May 06 16:53:09 2019 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR19Q2/org.openbravo.mobile.core/rev/cdce691d9c7de1397f4c4923b170f2a9fe9107c4 [^]

Related to issue 40790: Define mobile applications in login handler

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---