diff --git a/Documentation/access-control.txt b/Documentation/access-control.txt index 78acbd2ee7..23f6e72b98 100644 --- a/Documentation/access-control.txt +++ b/Documentation/access-control.txt @@ -1078,6 +1078,15 @@ Allow project creation. This capability allows the granted group to either link:cmd-create-project.html[create new git projects via ssh] or via the web UI. +[[capability_emailReviewers]] +Email Reviewers +~~~~~~~~~~~~~~~ + +Allow or deny sending email to change reviewers and watchers. This can be used +to deny build bots from emailing reviewers and people who watch the change. +Instead, only the authors of the change and those who starred it will be +emailed. The allow rules are evaluated before deny rules, however the default +is to allow emailing, if no explicit rule is matched. [[capability_flushCaches]] Flush Caches diff --git a/gerrit-common/src/main/java/com/google/gerrit/common/data/GlobalCapability.java b/gerrit-common/src/main/java/com/google/gerrit/common/data/GlobalCapability.java index 64444b4dee..81d4fc9242 100644 --- a/gerrit-common/src/main/java/com/google/gerrit/common/data/GlobalCapability.java +++ b/gerrit-common/src/main/java/com/google/gerrit/common/data/GlobalCapability.java @@ -42,12 +42,13 @@ public class GlobalCapability { public static final String CREATE_PROJECT = "createProject"; /** - * Denotes who may email change reviewers. + * Denotes who may email change reviewers and watchers. *
* This can be used to deny build bots from emailing reviewers and people who - * have starred the changed. Instead, only the authors of the change will be - * emailed. The allow rules are evaluated before deny rules, however the - * default is to allow emailing, if no explicit rule is matched. + * watch the change. Instead, only the authors of the change and those who + * starred it will be emailed. The allow rules are evaluated before deny + * rules, however the default is to allow emailing, if no explicit rule is + * matched. */ public static final String EMAIL_REVIEWERS = "emailReviewers";