made permissions checks optional for opensim mode
This commit is contained in:
@@ -101,16 +101,19 @@ BOOL DOFloaterHex::postBuild(void)
|
|||||||
}
|
}
|
||||||
setTitle(title);
|
setTitle(title);
|
||||||
}
|
}
|
||||||
|
#if OPENSIM_RULES!=1
|
||||||
if(mItem->getCreatorUUID() == gAgentID)
|
if(mItem->getCreatorUUID() == gAgentID)
|
||||||
{
|
{
|
||||||
|
#endif /* OPENSIM_RULES!=1 */
|
||||||
// Load the asset
|
// Load the asset
|
||||||
editor->setVisible(FALSE);
|
editor->setVisible(FALSE);
|
||||||
childSetText("status_text", std::string("Loading..."));
|
childSetText("status_text", std::string("Loading..."));
|
||||||
DOInventoryBackup::download(mItem, this, imageCallback, assetCallback);
|
DOInventoryBackup::download(mItem, this, imageCallback, assetCallback);
|
||||||
|
#if OPENSIM_RULES!=1
|
||||||
} else {
|
} else {
|
||||||
this->close(false);
|
this->close(false);
|
||||||
}
|
}
|
||||||
|
#endif /* OPENSIM_RULES!=1 */
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,16 +82,19 @@ BOOL HGFloaterTextEditor::postBuild(void)
|
|||||||
}
|
}
|
||||||
setTitle(title);
|
setTitle(title);
|
||||||
}
|
}
|
||||||
|
#if OPENSIM_RULES!=1
|
||||||
if(mItem->getCreatorUUID() == gAgentID)
|
if(mItem->getCreatorUUID() == gAgentID)
|
||||||
{
|
{
|
||||||
|
#endif /* OPENSIM_RULES!=1 */
|
||||||
// Load the asset
|
// Load the asset
|
||||||
editor->setVisible(FALSE);
|
editor->setVisible(FALSE);
|
||||||
childSetText("status_text", std::string("Loading..."));
|
childSetText("status_text", std::string("Loading..."));
|
||||||
DOInventoryBackup::download(mItem, this, imageCallback, assetCallback);
|
DOInventoryBackup::download(mItem, this, imageCallback, assetCallback);
|
||||||
|
#if OPENSIM_RULES!=1
|
||||||
} else {
|
} else {
|
||||||
this->close(false);
|
this->close(false);
|
||||||
}
|
}
|
||||||
|
#endif /* OPENSIM_RULES!=1 */
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -772,14 +772,18 @@ void LLItemBridge::performAction(LLFolderView* folder, LLInventoryModel* model,
|
|||||||
{
|
{
|
||||||
LLInventoryItem* item = model->getItem(mUUID);
|
LLInventoryItem* item = model->getItem(mUUID);
|
||||||
if(!item) return;
|
if(!item) return;
|
||||||
|
#if OPENSIM_RULES!=1
|
||||||
if(item->getCreatorUUID() != gAgentID) return;
|
if(item->getCreatorUUID() != gAgentID) return;
|
||||||
|
#endif /* OPENSIM_RULES!=1 */
|
||||||
DOFloaterHex::show(mUUID);
|
DOFloaterHex::show(mUUID);
|
||||||
}
|
}
|
||||||
else if("open text" == action)
|
else if("open text" == action)
|
||||||
{
|
{
|
||||||
LLInventoryItem* item = model->getItem(mUUID);
|
LLInventoryItem* item = model->getItem(mUUID);
|
||||||
if(!item) return;
|
if(!item) return;
|
||||||
|
#if OPENSIM_RULES!=1
|
||||||
if(item->getCreatorUUID() != gAgentID) return;
|
if(item->getCreatorUUID() != gAgentID) return;
|
||||||
|
#endif /* OPENSIM_RULES!=1 */
|
||||||
HGFloaterTextEditor::show(mUUID);
|
HGFloaterTextEditor::show(mUUID);
|
||||||
}
|
}
|
||||||
else if ("copy_uuid" == action)
|
else if ("copy_uuid" == action)
|
||||||
|
|||||||
Reference in New Issue
Block a user