_getPluginConfig()

in gr-serviceuser/gr-serviceuser-detail.js [144:157]


  _getPluginConfig() {
    return Promise.resolve(this._getPermissions()).then(() => {
      this.plugin.restApi('/config/server/serviceuser~config/').get('')
          .then(config => {
            if (!config) {
              return;
            }
            this._allowEmail = config.allow_email || this._isAdmin;
            this._allowOwner = config.allow_owner || this._isAdmin;
            this._allowHttpPassword = config.allow_http_password
              || this._isAdmin;
          });
    });
  }