I have a button that calls a Visualforce page that invokes an Aura app/component via Lightning out. I need to do this because in Lightning we cannot have Actions on list views.
Anyway, for me - sysadmin - it works perfectly. At some point the following Javascript code is executed:
window.parent.location.href = '/lightning/r/Verkoopkans_per_mail__c/' + objectId + '/view';
For me this works. Other users get this error:
This page has an error. You might just need to refresh it. Error in $A.getCallback() [Failed to set the 'href' property on 'Location': The current window does not have permission to navigate the target frame to '/lightning/r/Verkoopkans_per_mail__c/a0r3M00000006gTQAQ/view'.] Callback failed: apex://OpportunityForLWCController/ACTION$getAvailableOppPerMail Failing descriptor: {markup://c:GetOppPerMailWrapper}
When I google for 'The current window does not have permission to navigate the target frame to' I get results for not Salesforce specific same-origin-policy problems. But then it should happen to me as well, right? Those kinds of problems don't depend on profiles/permissions?
The custom object Verkoopkans_per_mail__c + its instance is accessible to other users, they can access it via another route and they have sufficient permissions to view it.