diff options
author | Merov Linden <merov@lindenlab.com> | 2014-04-29 12:03:03 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2014-04-29 12:03:03 -0700 |
commit | 4deb9f54c64d114bfd2aba76e51eaa01908b6610 (patch) | |
tree | 538d8c536d03c1255e2af62ebb505dc9faf42433 /indra/newview/llinventoryfunctions.cpp | |
parent | eeccd4c381243eb8dbbafdbaf43f30eb74b96048 (diff) |
DD-76 : Do not allow Calling Cards in Marketplace Listings
Diffstat (limited to 'indra/newview/llinventoryfunctions.cpp')
-rwxr-xr-x | indra/newview/llinventoryfunctions.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index 10a5ac4bc7..e63aca67f8 100755 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -1129,6 +1129,16 @@ void validate_marketplacelistings(LLInventoryCategory* cat, validation_callback_ } continue; } + if (viewer_inv_item->getType() == LLAssetType::AT_CALLINGCARD) + { + std::string message = " Error : calling cards are not allowed in listings : " + viewer_inv_item->getName(); + llinfos << "Merov : Validation error : " << message << llendl; + if (cb) + { + cb(message); + } + continue; + } // Update the appropriate vector item for that type LLInventoryType::EType type = LLInventoryType::IT_COUNT; // Default value for non stock items if (!viewer_inv_item->getPermissions().allowOperationBy(PERM_COPY, gAgent.getID(), gAgent.getGroupID())) |