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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user