LPS-31210 Checking control panel permissions based on PortalPermission.hasControlPanelAccessPermission