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 { ...@@ -58,8 +58,8 @@ public class ValidationResource {
private static final Logger LOGGER = LoggerFactory.getLogger(ValidationResource.class); private static final Logger LOGGER = LoggerFactory.getLogger(ValidationResource.class);
@Inject @Inject
@ConfigProperty(name = "eclipse.mail.whitelist") @ConfigProperty(name = "eclipse.mail.allowlist")
List<String> whitelistedUsers; List<String> allowListUsers;
// eclipse API rest client interfaces // eclipse API rest client interfaces
@Inject @RestClient AccountsAPI accounts; @Inject @RestClient AccountsAPI accounts;
...@@ -186,7 +186,7 @@ public class ValidationResource { ...@@ -186,7 +186,7 @@ public class ValidationResource {
EclipseUser eclipseCommitter = getIdentifiedUser(committer); EclipseUser eclipseCommitter = getIdentifiedUser(committer);
if (eclipseCommitter == null) { if (eclipseCommitter == null) {
// check if whitelisted or bot // check if whitelisted or bot
if (isWhitelistedUser(committer.getMail())) { if (isAllowedUser(committer.getMail())) {
addMessage( addMessage(
response, response,
String.format( String.format(
...@@ -333,8 +333,8 @@ public class ValidationResource { ...@@ -333,8 +333,8 @@ public class ValidationResource {
}); });
} }
private boolean isWhitelistedUser(String mail) { private boolean isAllowedUser(String mail) {
return whitelistedUsers.indexOf(mail) != -1; return allowListUsers.indexOf(mail) != -1;
} }
/** /**
......
...@@ -13,4 +13,4 @@ quarkus.http.port=8080 ...@@ -13,4 +13,4 @@ quarkus.http.port=8080
oauth2.client-id=placeholder oauth2.client-id=placeholder
oauth2.client-secret=placeholder oauth2.client-secret=placeholder
eclipse.mail.whitelist=noreply@github.com eclipse.mail.allowlist=noreply@github.com
\ No newline at end of file \ No newline at end of file
...@@ -15,4 +15,4 @@ oauth2.client-secret=placeholder ...@@ -15,4 +15,4 @@ oauth2.client-secret=placeholder
quarkus.log.level=DEBUG quarkus.log.level=DEBUG
eclipse.mail.whitelist=noreply@github.com eclipse.mail.allowlist=noreply@github.com
\ No newline at end of file \ 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