You need to sign in to do that
Don't have an account?
JohnDurai
Checking Permission set and displaying the LWC component based on permission set
Hi All - I have custom LWC coponent (Notes Button) which is reusable for accorss the application. Now, I need to check permssion set based on the permisson set and if the permssion set has read only access, then the below pop up shoud disable the save and cancel button for non editable and it the permssions set has both read and edit then it can be editable.
Use CustomPermission, add the reqd permission set into it and import into your JS file, as below. If it returns true, it means the permission set is assigne dto the user/Profile, else disable the button :
import <CustomPermissionNameVariable> from '@salesforce/customPermission/<CustomPermissionAPIName>';