I have an Apex method that gets the navigation menu items for a given navigation menu, using the
true, the following error is returned for guest users of an Experience Cloud site:
SELECT Id, ParentId, (SELECT AssetSourceId FROM CustomBrandAssets
ERROR at Row:1:Column:30
No such column 'AssetSourceId' on entity 'CustomBrandAsset'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.