diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2018-10-17 17:50:56 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2018-10-17 17:50:56 +0300 |
commit | a639642c218161901515d74852c5b61961ce3032 (patch) | |
tree | dbfde798096bee141c565c99ae23d0f6c8247f88 | |
parent | d8ed800991feaa3264f36f8e62f054bf0fe4d448 (diff) |
SL-9853 FIXED [EEP] Default Settings object cannot be copied by other users.
-rw-r--r-- | indra/newview/llsettingsvo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp index 8e55ae395a..1f62b98889 100644 --- a/indra/newview/llsettingsvo.cpp +++ b/indra/newview/llsettingsvo.cpp @@ -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()); |