Language: JavaScript
Label: vulnerable
CWE: CWE-863 \u2014 Incorrect Authorization
The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions.

Code:
      isBackgroundThrottlingEnabled: ipcRenderer.sendSync('background-throttling/get-is-enabled')
    };

    this.handleChangeUpdateCheckerEnabled = this.handleChangeUpdateCheckerEnabled.bind(this);
    this.handleOpenPrivacyPolicy = this.handleOpenPrivacyPolicy.bind(this);
    this.handleSelectedAudioDeviceChanged = this.handleSelectedAudioDeviceChanged.bind(this);
    this.handleSelectedVideoDeviceChanged = this.handleSelectedVideoDeviceChanged.bind(this);
    this.handleChangeHardwareAccelerationEnabled = this.handleChangeHardwareAccelerationEnabled.bind(this);
    this.handleBackgroundThrottlingChanged = this.handleBackgroundThrottlingChanged.bind(this);
    this.handleOpenUserData = this.handleOpenUserData.bind(this);
  }