Check canEditTopicName with PermissionBackend
Change-Id: Iaa731018ea2a0aaf2a44e684d9b232769117ef1a
This commit is contained in:

committed by
David Pursehouse

parent
3a9bd79051
commit
03c48e308c
@@ -74,6 +74,7 @@ import com.google.gerrit.server.change.Reviewers;
|
||||
import com.google.gerrit.server.change.Revisions;
|
||||
import com.google.gerrit.server.change.SubmittedTogether;
|
||||
import com.google.gerrit.server.change.SuggestChangeReviewers;
|
||||
import com.google.gerrit.server.permissions.PermissionBackendException;
|
||||
import com.google.gerrit.server.project.InvalidChangeOperationException;
|
||||
import com.google.gerrit.server.update.UpdateException;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
@@ -386,7 +387,7 @@ class ChangeApiImpl implements ChangeApi {
|
||||
in.topic = topic;
|
||||
try {
|
||||
putTopic.apply(change, in);
|
||||
} catch (UpdateException e) {
|
||||
} catch (UpdateException | PermissionBackendException e) {
|
||||
throw new RestApiException("Cannot set topic", e);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user