Commit e6defe9b authored by Martin Lowe's avatar Martin Lowe 🇨🇦 Committed by Martin Lowe
Browse files

Remove outdated terminology

parent 828d1903
......@@ -58,8 +58,8 @@ public class ValidationResource {
private static final Logger LOGGER = LoggerFactory.getLogger(ValidationResource.class);
@Inject
@ConfigProperty(name = "eclipse.mail.whitelist")
List<String> whitelistedUsers;
@ConfigProperty(name = "eclipse.mail.allowlist")
List<String> allowListUsers;
// eclipse API rest client interfaces
@Inject @RestClient AccountsAPI accounts;
......@@ -186,7 +186,7 @@ public class ValidationResource {
EclipseUser eclipseCommitter = getIdentifiedUser(committer);
if (eclipseCommitter == null) {
// check if whitelisted or bot
if (isWhitelistedUser(committer.getMail())) {
if (isAllowedUser(committer.getMail())) {
addMessage(
response,
String.format(
......@@ -333,8 +333,8 @@ public class ValidationResource {
});
}
private boolean isWhitelistedUser(String mail) {
return whitelistedUsers.indexOf(mail) != -1;
private boolean isAllowedUser(String mail) {
return allowListUsers.indexOf(mail) != -1;
}
/**
......
......@@ -13,4 +13,4 @@ quarkus.http.port=8080
oauth2.client-id=placeholder
oauth2.client-secret=placeholder
eclipse.mail.whitelist=noreply@github.com
\ No newline at end of file
eclipse.mail.allowlist=noreply@github.com
\ No newline at end of file
......@@ -15,4 +15,4 @@ oauth2.client-secret=placeholder
quarkus.log.level=DEBUG
eclipse.mail.whitelist=noreply@github.com
\ No newline at end of file
eclipse.mail.allowlist=noreply@github.com
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment