The function confirm_submission was returning the error that Dr. Freese reported only after sending the email. I've changed the logic such that the user permissions are checked first, then saved in a variable called response. If that response is not an error, then an email will be sent letting the user know the app was submitted successfully. Otherwise, no email will be sent.
I'm having a tough time testing these changes locally because I do have editor permissions in my appstore development environment. However, I can see that the logic changed as I expected.
First, I added SNP File Converter v10.0.1. I encountered an error upon submission (not a permissions error but rather a local host error), but still received an email letting me know the app was submitted successfully. I then made the above code changes, incremented the SNP File Converter version to v10.0.2, and tried submitting again. Now, I still see the error but no email has been sent.
The function confirm_submission was returning the error that Dr. Freese reported only after sending the email. I've changed the logic such that the user permissions are checked first, then saved in a variable called response. If that response is not an error, then an email will be sent letting the user know the app was submitted successfully. Otherwise, no email will be sent.
I'm having a tough time testing these changes locally because I do have editor permissions in my appstore development environment. However, I can see that the logic changed as I expected.
First, I added SNP File Converter v10.0.1. I encountered an error upon submission (not a permissions error but rather a local host error), but still received an email letting me know the app was submitted successfully. I then made the above code changes, incremented the SNP File Converter version to v10.0.2, and tried submitting again. Now, I still see the error but no email has been sent.