Check submit with PermissionBackend
Change-Id: I932103c669821b7cfe4f5d762052c35f3c9731dd
This commit is contained in:

committed by
David Pursehouse

parent
e92ad1112e
commit
46d61b3f2c
@@ -70,6 +70,7 @@ import com.google.gerrit.server.change.Submit;
|
||||
import com.google.gerrit.server.change.TestSubmitType;
|
||||
import com.google.gerrit.server.git.GitRepositoryManager;
|
||||
import com.google.gerrit.server.patch.PatchListNotAvailableException;
|
||||
import com.google.gerrit.server.permissions.PermissionBackendException;
|
||||
import com.google.gerrit.server.update.UpdateException;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
@@ -219,7 +220,7 @@ class RevisionApiImpl implements RevisionApi {
|
||||
public void submit(SubmitInput in) throws RestApiException {
|
||||
try {
|
||||
submit.apply(revision, in);
|
||||
} catch (OrmException | IOException e) {
|
||||
} catch (OrmException | IOException | PermissionBackendException e) {
|
||||
throw new RestApiException("Cannot submit change", e);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user