Use allow/deny instead of whitelist/blacklist for terminology

This commit is contained in:
Travis Ralston 2019-03-25 21:14:21 -06:00
parent 3654c895eb
commit 69fcebf045
3 changed files with 7 additions and 7 deletions

View file

@ -131,11 +131,11 @@ export default class WidgetMessaging {
const widgetSecurityKey = WidgetUtils.getWidgetSecurityKey(this.widgetId, this.widgetUrl, this.isUserWidget);
const settings = SettingsStore.getValue("widgetOpenIDPermissions");
if (settings.blacklist && settings.blacklist.includes(widgetSecurityKey)) {
if (settings.deny && settings.deny.includes(widgetSecurityKey)) {
this.fromWidget.sendResponse(rawEv, {state: "blocked"});
return;
}
if (settings.whitelist && settings.whitelist.includes(widgetSecurityKey)) {
if (settings.allow && settings.allow.includes(widgetSecurityKey)) {
const responseBody = {state: "allowed"};
const credentials = await MatrixClientPeg.get().getOpenIdToken();
Object.assign(responseBody, credentials);