Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0046408 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
feature request | [POS2] Core | minor | have not tried | 2021-04-29 09:22 | 2022-02-01 08:07 | ||||||
Reporter | jorge-garcia | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | normal | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Any | Database | Any | Java version | |||||||
OS Version | Database version | Ant version | |||||||||
Product Version | SCM revision | ||||||||||
Review Assigned To | |||||||||||
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 | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
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 |
Copyright © 2000 - 2009 MantisBT Group |