Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FLS to GGW_ApplicationCtrl #175

Open
cidarm opened this issue Feb 13, 2025 · 0 comments
Open

Add FLS to GGW_ApplicationCtrl #175

cidarm opened this issue Feb 13, 2025 · 0 comments

Comments

@cidarm
Copy link
Collaborator

cidarm commented Feb 13, 2025

OVERVIEW
Add Field level security check to the saveSelectedSectionText Method:

ACCEPTANCE CRITERIA

  @AuraEnabled
    public static void saveSelectedSectionText(String itemid, String blockid){
        GGW_Content_Block__c cBlock = GGW_ContentBlockSelector.queryContentBlockById(blockid);
        // Construct selected Item to update
        GGW_Selected_Item__c item = new GGW_Selected_Item__c();
        item.Id = itemid;
        item.Selected_Block__c = blockid;
        item.Text_Block__c = cBlock.Description__c; // Copy rich text from block to item for edits
        if(Schema.sObjectType.GGW_Selected_Item__c.isUpdateable()){
            update item;
        }
    }

OUT OF SCOPE

BACKGROUND/REFERENCE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant