diff options
author | Jonathan Yap <none@none> | 2012-06-20 10:19:51 -0400 |
---|---|---|
committer | Jonathan Yap <none@none> | 2012-06-20 10:19:51 -0400 |
commit | 0b669199aa7ce0620608ea424fc366f106756651 (patch) | |
tree | e00861e89e88abd2a41c6917add5561d9f32b265 | |
parent | 052dc3982056d822a523394954c277d9eb7c7ab9 (diff) |
STORM-68 A little bit of code cleanup
-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 |