I am implementing an inline VF page where I need to show list of accessbile record types of Opportunities to user. It is also listing Master record type. Following is the code,
for(RecordTypeInfo info: Opportunity.SObjectType.getDescribe().getRecordTypeInfos()) {
if(info.isAvailable()) {
System.debug('info - '+info);
}
}
The current logged in user has no access to Master record type on profile. When I click on standard New opportunity button on tab I don't see master record type whereas I can see other record types accessible. I have also checked permission sets assigned to logged in user which also does not have access to Master record type.