From dc27e10bdd158e0f57b3e07a5946cb8978b916e8 Mon Sep 17 00:00:00 2001 From: Mark Palange Date: Tue, 4 Mar 2008 19:47:07 +0000 Subject: svn merge -r 80852:81039 svn+ssh://svn.lindenlab.com/svn/linden/branches/security-steal-anything QAR-347 "SEC-28 - It is possible to rez any object, whether you own it or not." --- indra/newview/lltooldraganddrop.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'indra') diff --git a/indra/newview/lltooldraganddrop.cpp b/indra/newview/lltooldraganddrop.cpp index baff994bdd..f4de261240 100644 --- a/indra/newview/lltooldraganddrop.cpp +++ b/indra/newview/lltooldraganddrop.cpp @@ -2778,9 +2778,9 @@ EAcceptance LLToolDragAndDrop::dad3dRezFromObjectOnLand( LLViewerInventoryCategory* cat = NULL; locateInventory(item, cat); if(!item || !item->isComplete()) return ACCEPT_NO; - if(!item->getPermissions().allowCopyBy(gAgent.getID(), - gAgent.getGroupID()) - || !item->getPermissions().allowTransferTo(LLUUID::null)) + + if(!gAgent.allowOperation(PERM_COPY, item->getPermissions()) + || !item->getPermissions().allowTransferTo(LLUUID::null)) { return ACCEPT_NO_LOCKED; } -- cgit v1.2.3