Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: codereview/views_chromium.py

Issue 15962014: Don't add issue owner as reviewer if owner clicked commit box. (Closed)
Patch Set: Remove CC check. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: codereview/views_chromium.py
===================================================================
--- a/codereview/views_chromium.py
+++ b/codereview/views_chromium.py
@@ -455,7 +455,10 @@
if 'commit' in request.POST:
request.issue.commit = form.cleaned_data['commit']
- if request.user.email() not in request.issue.reviewers:
+ user_email = request.user.email().lower()
+ if (user_email != request.issue.owner.email() and
+ user_email not in request.issue.reviewers and
+ user_email not in request.issue.collaborator_emails()):
request.issue.reviewers.append(db.Email(request.user.email()))
request.issue.put()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698