Showing the changes to interface/src/scripting/WalletScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -37,14 +37,11 @@ void WalletScriptingInterface::setWalletStatus(const uint& status) { · 36 unmodified lines | |||
| 37 | emit DependencyManager::get<Wallet>()->walletStatusResult(status); | 37 | emit DependencyManager::get<Wallet>()->walletStatusResult(status); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | void WalletScriptingInterface::proveAvatarEntityOwnershipVerification(const QUuid& entityID) { | 40 | void WalletScriptingInterface::proveEntityOwnershipVerification(const QUuid& entityID) { |
| 41 | EntityItemProperties entityProperties = DependencyManager::get<EntityScriptingInterface>()->getEntityProperties(entityID, _entityPropertyFlags); | 41 | EntityItemProperties entityProperties = DependencyManager::get<EntityScriptingInterface>()->getEntityProperties(entityID, _entityPropertyFlags); |
| 42 | if (!entityID.isNull() && entityProperties.getMarketplaceID().length() > 0) { | 42 | if (!entityID.isNull() && entityProperties.getMarketplaceID().length() > 0) { |
| 43 | if (!entityProperties.getClientOnly()) { | ||
| 44 | qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is not an avatar entity"; | ||
| 45 | emit DependencyManager::get<ContextOverlayInterface>()->ownershipVerificationFailed(entityID); | ||
| 46 | return; | ||
| 47 | } | ||
| 48 | DependencyManager::get<ContextOverlayInterface>()->requestOwnershipVerification(entityID); | 43 | DependencyManager::get<ContextOverlayInterface>()->requestOwnershipVerification(entityID); |
| 44 | } else { | ||
| 45 | qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is null or not a marketplace item"; | ||
| 49 | } | 46 | } |
| 50 | } | 47 | } |