made permission checks optional for inv backups as well
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -3,3 +3,7 @@
|
|||||||
/indra/viewer-*
|
/indra/viewer-*
|
||||||
/indra/newview/vivox-runtime/
|
/indra/newview/vivox-runtime/
|
||||||
/libraries/
|
/libraries/
|
||||||
|
*.pyc
|
||||||
|
*.orig
|
||||||
|
*.rej
|
||||||
|
|
||||||
|
|||||||
@@ -304,9 +304,11 @@ void DOInventoryBackup::download(LLInventoryItem* item, LLFloater* floater, load
|
|||||||
userdata->item = item;
|
userdata->item = item;
|
||||||
LLViewerImage* imagep;
|
LLViewerImage* imagep;
|
||||||
|
|
||||||
|
#if OPENSIM_RULES!=1
|
||||||
//don't be a jerk. (this check probably breaks stuff)
|
//don't be a jerk. (this check probably breaks stuff)
|
||||||
if(item->getCreatorUUID() == gAgentID)
|
if(item->getCreatorUUID() == gAgentID)
|
||||||
{
|
{
|
||||||
|
#endif /* OPENSIM_RULES!=1 */
|
||||||
switch(item->getType())
|
switch(item->getType())
|
||||||
{
|
{
|
||||||
case LLAssetType::AT_TEXTURE:
|
case LLAssetType::AT_TEXTURE:
|
||||||
@@ -338,7 +340,9 @@ void DOInventoryBackup::download(LLInventoryItem* item, LLFloater* floater, load
|
|||||||
gAssetStorage->getAssetData(item->getAssetUUID(), item->getType(), onAsset, userdata, TRUE);
|
gAssetStorage->getAssetData(item->getAssetUUID(), item->getType(), onAsset, userdata, TRUE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if OPENSIM_RULES!=1
|
||||||
}
|
}
|
||||||
|
#endif /* OPENSIM_RULES!=1 */
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
|||||||
Reference in New Issue
Block a user