- def check_authentication(support_upload_pk):
- upload = models.SupportUpload.objects.get(pk=support_upload_pk)
- upload.local_status = "Authenticating"
- upload.save()
- if is_authenticated(upload.account_id):
- upload.local_status = "Authenticated"
- upload.save()
- return True
- else:
- upload.local_status = "Access Denied"
- upload.save()
- return False
|