Feature #18629
FE - React - ACL CASL
Status: | Closed | Start date: | 25 October 2023 | ||
---|---|---|---|---|---|
Priority: | Normal | Due date: | |||
Assignee: | chok yee fan | % Done: | 30% | ||
Category: | - | Spent time: | - | ||
Target version: | - |
Description
issue
-----
No function for this.
Expected
-----
- Need to find component for this. after research, possible could use
https://casl.js.org/v6/en/
- Need to install into react project try and error.
- Create share function and example to let others dev refer how to use it.
- Function list will provide by BE webservice, the function need to accecpt the function list
History
#1 Updated by Amirul Umar Pandai about 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
CASL components are included in the project as a proof of concept. Future implementation will alter permissions on login. Pending integration with web service
#2 Updated by chok yee fan about 1 year ago
- Status changed from In Progress to Feedback
- Assignee changed from Amirul Umar Pandai to David Wong
pending web service to integrate
#3 Updated by chok yee fan 11 months ago
- Assignee changed from David Wong to Amirul Umar Pandai
R&D subject and action use the same value, will the CASL still working as expected.
Have to come out the format of the data (Constants only).
#4 Updated by Amirul Umar Pandai 11 months ago
- Status changed from Feedback to Resolved
- Assignee changed from Amirul Umar Pandai to Hazimi Muhammad
Feature #18629 - copy CASL action into subject
#5 Updated by Hazimi Muhammad 11 months ago
- Status changed from Resolved to Feedback
- Assignee changed from Hazimi Muhammad to chok yee fan
-Try to commend out the { functionId: "FUNC_COUNTRY_MODIFY" }, in app,tsx. then test the modify button are there or not for all module.
-Check for all page for <Can I={ABILITY_CONSTANTS.MODIFY_COUNTRY} a={ABILITY_CONSTANTS.MODIFY_COUNTRY}> is there in actionpage.
Result: The modify botton are gone as expected for all page.
#6 Updated by chok yee fan 11 months ago
- File Screenshot 2024-02-07 at 10.36.21 AM.png added
- File Screenshot 2024-02-07 at 10.40.35 AM.png added
- Assignee changed from chok yee fan to Amirul Umar Pandai
issue
-------
- ccTopNavbar still using functionGroup
- only remove COUNTRY, other module such as BUSINESS: "BUSINESS",MLEB: "MLEB" still there
expected
-------
- ccTopNavbar remove functionGroup, use functionId only
- remove other module such as BUSINESS: "BUSINESS",MLEB: "MLEB" etc
#7 Updated by Amirul Umar Pandai 11 months ago
- Assignee changed from Amirul Umar Pandai to Hazimi Muhammad
#8 Updated by Hazimi Muhammad 11 months ago
- Assignee changed from Hazimi Muhammad to chok yee fan
Check for function group had been removed from the file cciam-constant , app,tsx , MenuConstant.tsx , Navbar.tsx
Check the cctop-constant.tsx that need to remove the module such as BUSINESS: "BUSINESS",MLEB: "MLEB" etc
#9 Updated by chok yee fan 11 months ago
- Status changed from Feedback to Closed
after check no more the module or functionGroup