Include Zoom as a potential partner, for retirement requests

This commit is contained in:
Dave St.Germain
2019-08-20 16:28:41 -04:00
parent a911813153
commit 37827b5df5

View File

@@ -526,6 +526,14 @@ class AccountRetirementPartnerReportView(ViewSet):
# Org can concievably be blank or this bogus default value
if org and org != 'outdated_entry':
orgs.add(org)
try:
# if the user has ever launched a managed Zoom xblock,
# we'll notify Zoom to delete their records.
if user.launchlog_set.filter(managed=True).count():
orgs.add('zoom')
except AttributeError:
# Zoom XBlock not installed
pass
return orgs
def retirement_partner_report(self, request): # pylint: disable=unused-argument