Openbravo Issue Tracking System - POS2
View Issue Details
0056139POS2POSpublic2024-07-31 14:262024-08-06 13:31
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
 
No
0056139: Button to switch from POS to SCO should not take into account current user permission to access SCO
When the button is clicked, a credential request will be prompted to introduce the data of the user that will be logged in into SCO, so it is not relevant relevant the current user has SCO access to determine if the button should be enabled.
- Configure a user (A) so that it has access to POS but not to SCO
- Configure another usre (B) so that it has access to SCO
- Configure the given terminal type so that it is enabled for both POS and SCO
- Login in POS with A
- Notice that the Switch to SCO toolbar button is disabled. This is wrong
No tags attached.
Issue History
2024-07-31 14:26AugustoMauchNew Issue
2024-07-31 14:26AugustoMauchAssigned To => Retail
2024-07-31 14:26AugustoMauchTriggers an Emergency Pack => No
2024-07-31 14:29hgbotNote Added: 0167543
2024-07-31 14:37AugustoMauchAssigned ToRetail => AugustoMauch
2024-07-31 14:37AugustoMauchStatusnew => acknowledged
2024-07-31 14:37AugustoMauchStatusacknowledged => scheduled
2024-08-06 13:31hgbotNote Added: 0167749
2024-08-06 13:31hgbotResolutionopen => fixed
2024-08-06 13:31hgbotStatusscheduled => closed
2024-08-06 13:31hgbotNote Added: 0167750

Notes
(0167543)
hgbot   
2024-07-31 14:29   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout/-/merge_requests/43 [^]
(0167749)
hgbot   
2024-08-06 13:31   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout/-/merge_requests/43 [^]
(0167750)
hgbot   
2024-08-06 13:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout [^]
Changeset: f3afc6158bba7c0cab06912d4211d5f85ee8a5df
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 06-08-2024 09:41:27
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.selfcheckout/-/commit/f3afc6158bba7c0cab06912d4211d5f85ee8a5df [^]

Fixes ISSUE-56139: Switch to SCO button should not check current user SCO access

The SwitchToSelfCheckout user action no longer has a executability rule to disable the button if the current user does not have access to SCO.

Also, the user action definition from the application dictionary has been removed, becaues we do not want the user action to be configurable from Roles -> User Action Access. The
button will be enabled if the terminal has been granted SCO access, and when clicked, the entered credentials will be validated for SCO access

---
M web-jspack/org.openbravo.pos2.selfcheckout/src/model/sco-mode/SwitchToSelfCheckout.js
R src-db/database/sourcedata/OBC2_USER_ACTION.xml
---