Check canEditAssignee with PermissionBackend
Change-Id: I373267a7272f35e972dde5c38cce6f753196350c
This commit is contained in:

committed by
David Pursehouse

parent
03c48e308c
commit
6b9563f3ce
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user