made permission checks optional for inv backups as well

This commit is contained in:
Hazim Gazov
2010-04-21 08:22:45 -03:00
parent a50755a505
commit 216b2167d3
2 changed files with 8 additions and 0 deletions

4
.gitignore vendored
View File

@@ -3,3 +3,7 @@
/indra/viewer-*
/indra/newview/vivox-runtime/
/libraries/
*.pyc
*.orig
*.rej

View File

@@ -304,9 +304,11 @@ void DOInventoryBackup::download(LLInventoryItem* item, LLFloater* floater, load
userdata->item = item;
LLViewerImage* imagep;
#if OPENSIM_RULES!=1
//don't be a jerk. (this check probably breaks stuff)
if(item->getCreatorUUID() == gAgentID)
{
#endif /* OPENSIM_RULES!=1 */
switch(item->getType())
{
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);
break;
}
#if OPENSIM_RULES!=1
}
#endif /* OPENSIM_RULES!=1 */
}
// static