Check labels during PostReview with PermissionBackend
This isn't sufficient to completely remove the label range code from ChangeControl and RefControl as there are many callers. This commit covers users setting labels through the REST API and web UI. Change-Id: I25f17eef610ddcd30918bc4532d24876779e6a3e
This commit is contained in:

committed by
David Pursehouse

parent
990bf6146e
commit
9d58a38670
@@ -314,7 +314,7 @@ public class ImpersonationIT extends AbstractDaemonTest {
|
||||
in.label("Code-Review", 1);
|
||||
|
||||
exception.expect(UnprocessableEntityException.class);
|
||||
exception.expectMessage("on_behalf_of account " + user.id + " cannot see destination ref");
|
||||
exception.expectMessage("on_behalf_of account " + user.id + " cannot see change");
|
||||
revision.review(in);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user