issue #21302: Extensions need to consider role.