Openbravo Issue Tracking System - POS2
View Issue Details
0046408POS2Corepublic2021-04-29 09:222022-02-01 08:07
jorge-garcia 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
No
0046408: If a components uses useEnabledUserAction hook but the role has no access to the user action, the function returns undefined
If a components uses useEnabledUserAction hook but the role has no access to the user action, the function returns undefined
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
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
No tags attached.
Issue History
2021-04-29 09:22jorge-garciaNew Issue
2021-04-29 09:22jorge-garciaAssigned To => Retail
2021-04-29 09:22jorge-garciaTriggers an Emergency Pack => No
2021-04-29 09:43guilleaerAssigned ToRetail => platform
2021-04-30 09:13guilleaerStatusnew => acknowledged
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.