mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 04:03:59 +02:00
Make inspection cert work
This commit is contained in:
parent
b335ba9a75
commit
56cb98d96f
2 changed files with 20 additions and 23 deletions
|
@ -67,27 +67,25 @@ Rectangle {
|
|||
}
|
||||
|
||||
onUpdateCertificateStatus: {
|
||||
if (root.certificateId === certID) {
|
||||
if (certStatus === 1) { // CERTIFICATE_STATUS_VERIFICATION_SUCCESS
|
||||
|
||||
} else if (certStatus === 2) { // CERTIFICATE_STATUS_VERIFICATION_TIMEOUT
|
||||
errorText.text = "Verification of this certificate timed out.";
|
||||
errorText.color = hifi.colors.redHighlight;
|
||||
} else if (certStatus === 3) { // CERTIFICATE_STATUS_STATIC_VERIFICATION_FAILED
|
||||
titleBarText.text = "Invalid Certificate";
|
||||
titleBarText.color = hifi.colors.redHighlight;
|
||||
root.itemEdition = "Uncertified Copy";
|
||||
errorText.text = "The certificate associated with this entity is invalid.";
|
||||
errorText.color = hifi.colors.redHighlight;
|
||||
} else if (certStatus === 4) { // CERTIFICATE_STATUS_OWNER_VERIFICATION_FAILED
|
||||
titleBarText.text = "Invalid Certificate";
|
||||
titleBarText.color = hifi.colors.redHighlight;
|
||||
root.itemEdition = "Uncertified Copy";
|
||||
errorText.text = "The certificate associated with this entity is invalid.";
|
||||
errorText.color = hifi.colors.redHighlight;
|
||||
} else {
|
||||
console.log("Unknown certificate status received from ledger signal!");
|
||||
}
|
||||
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;
|
||||
} else if (certStatus === 3) { // CERTIFICATE_STATUS_STATIC_VERIFICATION_FAILED
|
||||
titleBarText.text = "Invalid Certificate";
|
||||
titleBarText.color = hifi.colors.redHighlight;
|
||||
root.itemEdition = "Uncertified Copy";
|
||||
errorText.text = "The certificate associated with this entity is invalid.";
|
||||
errorText.color = hifi.colors.redHighlight;
|
||||
} else if (certStatus === 4) { // CERTIFICATE_STATUS_OWNER_VERIFICATION_FAILED
|
||||
titleBarText.text = "Invalid Certificate";
|
||||
titleBarText.color = hifi.colors.redHighlight;
|
||||
root.itemEdition = "Uncertified Copy";
|
||||
errorText.text = "The certificate associated with this entity is invalid.";
|
||||
errorText.color = hifi.colors.redHighlight;
|
||||
} else {
|
||||
console.log("Unknown certificate status received from ledger signal!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue