Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0053796Openbravo ERPA. Platformpublic2023-10-30 13:352023-11-09 23:41
ablasco 
AugustoMauch 
highmajoralways
closedfixed 
5
 
 
Core
QA functional test
2023-10-17
main
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/53376e56283d11e1f19363bcf79e53ab03d95639 [^]
No
0053796: User cannot connect to POS if default role belong to another store
Login in POS2 should verify from backend different role access to login in the application.

With Auto Roles, some modifications have been done related with which role should be selected base on username and password inserted in Login Form.

A user can be associated with several user Roles with different types of access.

A query is executed based on role, user and clientId to verify if the current user Organization belongs to the Organization Tree of the terminal.
But the role selected to execute the query is not properly defined to provide access to login.
In backend:
- Log in
- Open the User window
- Select the vallblanca user
- Give it access to the PosetsUser role in the User Roles tab
- Modify the header, set PosetsUser as Default POS Role (in More Information field group)
- Log out

In POS2
- Try to log in with the vallblanca user to the VBS-2 Terminal. An error will be displayed: "Impossible to connect to another POS than the default organization"

"The user doesn't have permission to access this terminal. The Organization of the userdoesn't belong to the natural organization tree of the terminal"
No tags attached.
caused by defect 0053408 closed ablasco Do not persist access for automatic roles 
Issue History
2023-10-30 13:35ablascoNew Issue
2023-10-30 13:35ablascoAssigned To => ablasco
2023-10-30 13:35ablascoModules => Core
2023-10-30 13:35ablascoTriggers an Emergency Pack => No
2023-10-30 13:41AugustoMauchRegression level => QA functional test
2023-10-30 13:41AugustoMauchRegression date => 2023-10-17
2023-10-30 13:41AugustoMauchRegression introduced in release => main
2023-10-30 13:41AugustoMauchRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/53376e56283d11e1f19363bcf79e53ab03d95639 [^]
2023-10-30 13:41AugustoMauchRelationship addedcaused by 0053408
2023-10-30 13:42AugustoMauchStatusnew => scheduled
2023-10-30 14:18hgbotNote Added: 0156492
2023-10-31 15:07ablascoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27058#r27058
2023-10-31 15:11ablascoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27059#r27059
2023-11-01 10:57AugustoMauchSummaryAuto Roles Regression - Impossible to connect to another POS than the default organization => User cannot connect to POS if default role belong to another store
2023-11-01 10:57AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27062#r27062
2023-11-01 10:57AugustoMauchProposed Solution updated
2023-11-01 10:57AugustoMauchAssigned Toablasco => AugustoMauch
2023-11-01 11:01hgbotNote Added: 0156586
2023-11-01 11:02hgbotNote Added: 0156587
2023-11-01 11:02AugustoMauchNote Deleted: 0156492
2023-11-01 11:02AugustoMauchNote Deleted: 0156587
2023-11-09 15:21hgbotNote Added: 0156978
2023-11-09 23:41AugustoMauchStatusscheduled => resolved
2023-11-09 23:41AugustoMauchFixed in SCM revision => 24Q1
2023-11-09 23:41AugustoMauchResolutionopen => fixed
2023-11-09 23:41AugustoMauchStatusresolved => closed

Notes
(0156586)
hgbot   
2023-11-01 11:01   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1403 [^]
(0156978)
hgbot   
2023-11-09 15:21   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1403 [^]