Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for GWE-282-0 #5126

Merged
merged 2 commits into from
Sep 4, 2019
Merged

Fix for GWE-282-0 #5126

merged 2 commits into from
Sep 4, 2019

Conversation

androolloyd
Copy link
Contributor

Description

Addressing GWE-282-0

Refers/Fixes

#5125

Testing

Unable to reproduce GWE-282-0 with this change.

danlipert
danlipert previously approved these changes Sep 4, 2019
@@ -275,6 +276,10 @@ def email_settings(request, key):
preferred_language = request.POST.get('preferred_language')
validation_passed = True
try:
email_in_use = User.objects.filter(email=email) | User.objects.filter(profile__email=email)
email_used_marketing = EmailSubscriber.objects.filter(email=email).select_related('profile')
if (email_in_use or email_used_marketing) and (request.user.email != email or request.user.profile.email != email):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

octavioamu
octavioamu previously approved these changes Sep 4, 2019
Copy link
Member

@thelostone-mc thelostone-mc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ We've got CI failures 🤔
@androolloyd mind running the pre commit hooks? that will auto fix the sorting error

@octavioamu octavioamu dismissed stale reviews from danlipert and themself via 3cdc849 September 4, 2019 13:13
@codecov
Copy link

codecov bot commented Sep 4, 2019

Codecov Report

Merging #5126 into master will decrease coverage by <.01%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5126      +/-   ##
=========================================
- Coverage    30.9%   30.9%   -0.01%     
=========================================
  Files         219     219              
  Lines       17618   17623       +5     
  Branches     2427    2428       +1     
=========================================
+ Hits         5445    5446       +1     
- Misses      11950   11952       +2     
- Partials      223     225       +2
Impacted Files Coverage Δ
app/marketing/views.py 11.96% <20%> (+0.1%) ⬆️
app/dashboard/views.py 14.06% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 04a2423...3cdc849. Read the comment docs.

@thelostone-mc thelostone-mc merged commit b6263a4 into master Sep 4, 2019
@thelostone-mc thelostone-mc deleted the bug/CWE-282-0 branch June 27, 2020 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants