NIHVIVO-2343 A user should not be allowed as a proxy for his own profile.

This commit is contained in:
j2blake 2011-10-30 17:15:53 +00:00
parent b7ec17856e
commit a866b5daf4
4 changed files with 10 additions and 4 deletions

View file

@ -43,6 +43,8 @@ function proxyProxiesPanel(p) {
var self = this;
var excludedUris = [proxyMechanism.myAccountUri];
var removeProxyInfo = function(info) {
self.removeProxyInfo(info)
}
@ -153,7 +155,7 @@ function proxyProxiesPanel(p) {
url: proxyMechanism.sparqlQueryUrl
};
var reportSearchStatus = new searchStatusField(this.searchStatusField, 3).setText;
this.addAutoCompleteField.autocomplete(new proxyAutocomplete(parms, this.getProxyInfos, this.addProxyInfo, reportSearchStatus));
this.addAutoCompleteField.autocomplete(new proxyAutocomplete(parms, excludedUris, this.getProxyInfos, this.addProxyInfo, reportSearchStatus));
}
this.setupAutoCompleteFields();