diff options
Diffstat (limited to 'indra/newview/llpanelcontents.cpp')
-rw-r--r-- | indra/newview/llpanelcontents.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/indra/newview/llpanelcontents.cpp b/indra/newview/llpanelcontents.cpp index ac0cf460c0..7ade2c7972 100644 --- a/indra/newview/llpanelcontents.cpp +++ b/indra/newview/llpanelcontents.cpp @@ -162,9 +162,9 @@ void LLPanelContents::onClickNewScript(void *userdata) perm.initMasks( PERM_ALL, PERM_ALL, - PERM_NONE, - PERM_NONE, - // this does not work + // *NOTE: this does not work, needs server change + LLFloaterPerms::getEveryonePerms("Scripts"), + LLFloaterPerms::getGroupPerms("Scripts"), PERM_MOVE | LLFloaterPerms::getNextOwnerPerms("Scripts")); std::string desc; LLViewerAssetType::generateDescriptionFor(LLAssetType::AT_LSL_TEXT, desc); @@ -184,14 +184,6 @@ void LLPanelContents::onClickNewScript(void *userdata) object->saveScript(new_item, TRUE, true); std::string name = new_item->getName(); -llwarns << "DBG " << new_item->getUUID() << llendl; - -// LLPermissions perm = new_item->getPermissions(); - perm.setMaskNext(LLFloaterPerms::getNextOwnerPerms("Scripts")); - perm.setMaskEveryone(LLFloaterPerms::getEveryonePerms("Scripts")); - perm.setMaskGroup(LLFloaterPerms::getGroupPerms("Scripts")); - new_item->setPermissions(perm); - // *NOTE: In order to resolve SL-22177, we needed to create // the script first, and then you have to click it in |