Only show Revert submission for merged change

Change-Id: Ie1556c0c694f58f6586fccae5f03b20b640feb0f
This commit is contained in:
Tao Zhou
2019-10-24 16:04:53 +02:00
parent e43934cec1
commit d41ffefefd

View File

@@ -157,7 +157,7 @@ public class RevertSubmission
"Revert this change and all changes that have been submitted together with this change") "Revert this change and all changes that have been submitted together with this change")
.setVisible( .setVisible(
and( and(
projectStatePermitsWrite, change.isMerged() && projectStatePermitsWrite,
permissionBackend permissionBackend
.user(rsrc.getUser()) .user(rsrc.getUser())
.ref(change.getDest()) .ref(change.getDest())