Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0046408 | POS2 | Core | public | 2021-04-29 09:22 | 2022-02-01 08:07 |
Reporter | jorge-garcia | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | acknowledged | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0046408: If a components uses useEnabledUserAction hook but the role has no access to the user action, the function returns undefined | ||||
Description | If a components uses useEnabledUserAction hook but the role has no access to the user action, the function returns undefined | ||||
Steps To Reproduce | 1) Go to Role window in ERP 2) Select "VallBlancaUser" record and go to User Action Access tab 3) Deactivate the record for "SelectCurrentSchema" 4) Go to the POS and clear the cache 5) Do a login and try to change the current schema to another one 6) The application crashes | ||||
Proposed Solution | Here we have to decide one of two things: - If MAKES sense that useEnabledUserAction returns undefined if the role has no permission to execute the user actions, then we have to change SchemaSelectorButton component and any other components that uses the hook to manage properly this case - If DOES NOT makes sense that seEnabledUserAction returns undefined if the role has no permission to execute the user action, then we have to decide what should be returned and decide how to manage properly all possible scenarios | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-04-29 09:22 | jorge-garcia | New Issue | |||
2021-04-29 09:22 | jorge-garcia | Assigned To | => Retail | ||
2021-04-29 09:22 | jorge-garcia | Triggers an Emergency Pack | => No | ||
2021-04-29 09:43 | guilleaer | Assigned To | Retail => platform | ||
2021-04-30 09:13 | guilleaer | Status | new => acknowledged | ||
2022-02-01 08:07 | alostale | Assigned To | platform => Triage Platform Base |
There are no notes attached to this issue. |