History

remove restriction to be avatar only

Liv Erickson committed 8 years ago

Commit 6a971e11 parent a10f7932 files · +4 −7Browse files

Showing the changes to interface/src/scripting/WalletScriptingInterface.cpp (1 of 2 files). Show all

Unified · Split

interface/src/scripting/WalletScriptingInterface.cpp+3−6
@@ -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
40void WalletScriptingInterface::proveAvatarEntityOwnershipVerification(const QUuid& entityID) {40void 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}