summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelcontents.cpp
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2012-06-12 14:26:53 -0400
committerJonathan Yap <none@none>2012-06-12 14:26:53 -0400
commit052dc3982056d822a523394954c277d9eb7c7ab9 (patch)
tree57af33b0c423c658471305cf42e00f0f9ed5992d /indra/newview/llpanelcontents.cpp
parentb6df9b6d56108bcf4b3e8dfd875ef76a9b6f448b (diff)
STORM-68 Fix for group perms not being defined correctly and fix for group and everyone perms failing to copy and paste
Diffstat (limited to 'indra/newview/llpanelcontents.cpp')
-rw-r--r--indra/newview/llpanelcontents.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpanelcontents.cpp b/indra/newview/llpanelcontents.cpp
index db4b679c50..ac0cf460c0 100644
--- a/indra/newview/llpanelcontents.cpp
+++ b/indra/newview/llpanelcontents.cpp
@@ -183,6 +183,16 @@ void LLPanelContents::onClickNewScript(void *userdata)
time_corrected());
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
// inventory to edit it.