Merge "Add TODOs for public ChangeControl methods used only for drafts"

This commit is contained in:
Edwin Kempin
2017-08-24 15:55:03 +00:00
committed by Gerrit Code Review

View File

@@ -230,6 +230,7 @@ public class ChangeControl {
/** Can this user publish this draft change or any draft patch set of this change? */
public boolean canPublish(ReviewDb db) throws OrmException {
// TODO(hiesel) These don't need to be migrated, just remove after support for drafts is removed
return (isOwner() || getRefControl().canPublishDrafts()) && isVisible(db);
}
@@ -439,6 +440,7 @@ public class ChangeControl {
}
public boolean isDraftVisible(ReviewDb db, ChangeData cd) throws OrmException {
// TODO(hiesel) These don't need to be migrated, just remove after support for drafts is removed
return isOwner()
|| isReviewer(db, cd)
|| getRefControl().canViewDrafts()