Convert modifyAccount to PermissionBackend

Update a few test messages to reflect check throwing a generic
AuthException("modify account not permitted") instead of the
prior custom text.

Change-Id: Ie3ddd250289618a43d2708264863f2e850fd54cb
This commit is contained in:
Shawn Pearce
2017-02-20 12:20:01 -08:00
committed by David Pursehouse
parent a3efaba361
commit b168511335
17 changed files with 180 additions and 75 deletions

View File

@@ -511,7 +511,7 @@ public class AccountIT extends AbstractDaemonTest {
// user cannot delete email of admin
exception.expect(AuthException.class);
exception.expectMessage("not allowed to delete email address");
exception.expectMessage("modify account not permitted");
gApi.accounts().id(admin.id.get()).deleteEmail(admin.email);
}
@@ -909,7 +909,7 @@ public class AccountIT extends AbstractDaemonTest {
// user cannot reindex any account
exception.expect(AuthException.class);
exception.expectMessage("not allowed to index account");
exception.expectMessage("modify account not permitted");
gApi.accounts().id(admin.username).index();
}