Merge "Fall back to addByEmail for inactive CCs"
This commit is contained in:
@@ -240,6 +240,9 @@ public class PostReviewers implements RestModifyView<ChangeResource, AddReviewer
|
||||
reviewer, rsrc, ImmutableSet.of(member.getId()), null, state, notify, accountsToNotify);
|
||||
}
|
||||
if (!member.isActive()) {
|
||||
if (allowByEmail && state == CC) {
|
||||
return null;
|
||||
}
|
||||
return fail(reviewer, MessageFormat.format(ChangeMessages.get().reviewerInactive, reviewer));
|
||||
}
|
||||
return fail(
|
||||
|
||||
Reference in New Issue
Block a user