osuosl / streamwebs

Streamwebs.org website
http://streamwebs.readthedocs.io/
4 stars 1 forks source link

Error when Approving Accounts as Editor #581

Closed hertelc closed 6 years ago

hertelc commented 6 years ago
  1. I created 2 accounts for approval.
  2. I then logged in as the Editor for Ackerman Middle (user hertelmc1).
  3. In "Manage Account" I selected the user hertelmc@gmail.com and denied their account. That seemed ok.
  4. I clicked on the contributor box and Apply for the kolstadc@gmail.com account and received an error.
  5. After saving that error page for this bug, clicked the back button on the browser (Chrome).
  6. I then clicked on the Editor box and clicked Apply again. Same error.
  7. I then clicked on "Manage Account" to refresh the page and now... I have kolstadc@gmail.com user in BOTH places... which should not be allowed.

AttributeError at _schools_9_manageaccounts.pdf

approvecontributor

hertelc commented 6 years ago

Note, the action seems to be happening even with the error.

CarvellWakeman commented 6 years ago

This variable is in the settings.py.dist file. If this didn't make it into the deploy than this error would occur. Perhaps these global settings need to be placed in a different file?

hertelc commented 6 years ago

@ramereth see comment above.

hertelc commented 6 years ago

Also note: tested using http://streamwebs-dev.osuosl.org:8000

CarvellWakeman commented 6 years ago

The error occurs when an email is sent because it uses those variables to know where to send the email and what the URL of streamwebs is.

hertelc commented 6 years ago

Verified this issue is fixed.