Use allow/deny instead of whitelist/blacklist for terminology
This commit is contained in:
parent
3654c895eb
commit
69fcebf045
3 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue