Check canEditAssignee with PermissionBackend

Change-Id: I373267a7272f35e972dde5c38cce6f753196350c
This commit is contained in:
Shawn Pearce
2017-02-18 15:46:21 -08:00
committed by David Pursehouse
parent 03c48e308c
commit 6b9563f3ce
5 changed files with 17 additions and 15 deletions

View File

@@ -494,7 +494,7 @@ class ChangeApiImpl implements ChangeApi {
public AccountInfo setAssignee(AssigneeInput input) throws RestApiException {
try {
return putAssignee.apply(change, input);
} catch (UpdateException | IOException | OrmException e) {
} catch (UpdateException | IOException | OrmException | PermissionBackendException e) {
throw new RestApiException("Cannot set assignee", e);
}
}
@@ -523,7 +523,7 @@ class ChangeApiImpl implements ChangeApi {
try {
Response<AccountInfo> r = deleteAssignee.apply(change, null);
return r.isNone() ? null : r.value();
} catch (UpdateException | OrmException e) {
} catch (UpdateException | OrmException | PermissionBackendException e) {
throw new RestApiException("Cannot delete assignee", e);
}
}