Make inspection cert work

This commit is contained in:
Zach Fox 2017-11-01 12:02:09 -07:00
parent b335ba9a75
commit 56cb98d96f
2 changed files with 20 additions and 23 deletions

View file

@ -67,9 +67,8 @@ Rectangle {
}
onUpdateCertificateStatus: {
if (root.certificateId === certID) {
if (certStatus === 1) { // CERTIFICATE_STATUS_VERIFICATION_SUCCESS
// NOP
} else if (certStatus === 2) { // CERTIFICATE_STATUS_VERIFICATION_TIMEOUT
errorText.text = "Verification of this certificate timed out.";
errorText.color = hifi.colors.redHighlight;
@ -90,7 +89,6 @@ Rectangle {
}
}
}
}
onCertificateIdChanged: {
if (certificateId !== "") {

View file

@ -279,8 +279,7 @@ void ContextOverlayInterface::openInspectionCertificate() {
QUuid nodeToChallenge = entityProperties.getOwningAvatarID();
auto nodeList = DependencyManager::get<NodeList>();
// ZRF FIXME: Don't challenge ownership of avatar entities that I own
if (entityProperties.getClientOnly()/* && nodeToChallenge != nodeList->getSessionUUID()*/) {
if (entityProperties.getClientOnly()) {
if (entityProperties.verifyStaticCertificateProperties()) {
SharedNodePointer entityServer = nodeList->soloNodeOfType(NodeType::EntityServer);