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

Unified Diff: codereview/views_chromium.py

Issue 15962014: Don't add issue owner as reviewer if owner clicked commit box. (Closed)
Patch Set: 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,8 @@
if 'commit' in request.POST:
request.issue.commit = form.cleaned_data['commit']
- if request.user.email() not in request.issue.reviewers:
+ if (request.user.email() not in request.issue.reviewers and
+ request.user.email() != request.issue.owner):
iannucci 2013/05/24 21:47:23 should also check request.issue.is_collaborator(re
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