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
3737 emit DependencyManager::get<Wallet>()->walletStatusResult(status);
3838 }
3939
40−void WalletScriptingInterface::proveAvatarEntityOwnershipVerification(const QUuid& entityID) {
40+void WalletScriptingInterface::proveEntityOwnershipVerification(const QUuid& entityID) {
4141 EntityItemProperties entityProperties = DependencyManager::get<EntityScriptingInterface>()->getEntityProperties(entityID, _entityPropertyFlags);
4242 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− }
4843 DependencyManager::get<ContextOverlayInterface>()->requestOwnershipVerification(entityID);
44+ } else {
45+ qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is null or not a marketplace item";
4946 }
5047 }