Make "My Drafts" limited to own drafts

The query "is:draft" also returns other users' drafts if the current
user has the "View Drafts" capability.

Limit it to the user's own changes by adding the "owner:self" clause.

Change-Id: Ib144e447687ae1d6fd99d34e108abb8a2f79e606
This commit is contained in:
David Pursehouse
2015-01-19 11:33:04 +09:00
parent 6d3411fe3f
commit abc1296cd4
5 changed files with 7 additions and 7 deletions

View File

@@ -284,7 +284,7 @@ public class Dispatcher {
}
if (matchExact("mine,drafts", token)) {
return toChangeQuery("is:draft");
return toChangeQuery("owner:self is:draft");
}
if (matchExact("mine,comments", token)) {