summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterperms.cpp
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2013-12-03 10:44:44 -0500
committerJonathan Yap <none@none>2013-12-03 10:44:44 -0500
commit9e8a7869ce4e51d5caeb46118972509a0110f766 (patch)
tree9fcb9deec114ec08e9a70f20f09fa2dcc1c6ad6d /indra/newview/llfloaterperms.cpp
parentaec2fde7a4c3114b9081fa3c90f891f8337595ad (diff)
STORM-68 Change CAP name to AgentPreferences and adjust LLSD format to mesh with server changes
Diffstat (limited to 'indra/newview/llfloaterperms.cpp')
-rwxr-xr-xindra/newview/llfloaterperms.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/newview/llfloaterperms.cpp b/indra/newview/llfloaterperms.cpp
index 4923420a3e..b03a4e9013 100755
--- a/indra/newview/llfloaterperms.cpp
+++ b/indra/newview/llfloaterperms.cpp
@@ -182,15 +182,18 @@ llwarns << "DBG start" << llendl;
}
llwarns << "DBG getRegion" << llendl;
- std::string object_url = gAgent.getRegion()->getCapability("DefaultObjectPermissions");
+ std::string object_url = gAgent.getRegion()->getCapability("AgentPreferences");
if(!object_url.empty())
{
-llwarns << "DBG post" << llendl;
LLSD report = LLSD::emptyMap();
- report["Group"] = (LLSD::Integer)LLFloaterPerms::getGroupPerms(sCategoryNames[CAT_OBJECTS]);
- report["Everyone"] = (LLSD::Integer)LLFloaterPerms::getEveryonePerms(sCategoryNames[CAT_OBJECTS]);
- report["NextOwner"] = (LLSD::Integer)LLFloaterPerms::getNextOwnerPerms(sCategoryNames[CAT_OBJECTS]);
+ report["default_object_perm_masks"]["Group"] =
+ (LLSD::Integer)LLFloaterPerms::getGroupPerms(sCategoryNames[CAT_OBJECTS]);
+ report["default_object_perm_masks"]["Everyone"] =
+ (LLSD::Integer)LLFloaterPerms::getEveryonePerms(sCategoryNames[CAT_OBJECTS]);
+ report["default_object_perm_masks"]["NextOwner"] =
+ (LLSD::Integer)LLFloaterPerms::getNextOwnerPerms(sCategoryNames[CAT_OBJECTS]);
+llwarns << "DBG post:" << report << llendl;
LLHTTPClient::post(object_url, report, new LLFloaterPermsResponder());
}
}