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
commit
f192ecf44b
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue