Merged in maxim_productengine/viewer-eep (pull request #152)

SL-9853 FIXED [EEP] Default Settings object cannot be copied by other users.
meow-7.2.2
Rider Linden 2018-10-17 15:47:17 +00:00
commit f192ecf44b
1 changed files with 8 additions and 0 deletions

View File

@ -158,6 +158,14 @@ void LLSettingsVOBase::onInventoryItemCreated(const LLUUID &inventoryId, LLSetti
if (pitem)
{
asset_id = pitem->getAssetUUID();
LLPermissions perm = pitem->getPermissions();
if (perm.getMaskEveryone() != PERM_COPY)
{
perm.setMaskEveryone(PERM_COPY);
pitem->setPermissions(perm);
pitem->updateServer(FALSE);
}
}
if (callback)
callback(asset_id, inventoryId, LLUUID::null, LLSD());