Check canEditDescription with PermissionBackend

Change-Id: I28a0727ecde5b418e9996bb78858a1b18e96b8a4
This commit is contained in:
Shawn Pearce
2017-02-18 16:19:29 -08:00
committed by David Pursehouse
parent 46d61b3f2c
commit df11d43964
4 changed files with 9 additions and 9 deletions

View File

@@ -545,7 +545,7 @@ class RevisionApiImpl implements RevisionApi {
in.description = description;
try {
putDescription.apply(revision, in);
} catch (UpdateException e) {
} catch (UpdateException | PermissionBackendException e) {
throw new RestApiException("Cannot set description", e);
}
}