summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Oleynik <aoleynik@luxoft.com>2015-05-14 18:29:23 +0300
committerAndrey Oleynik <aoleynik@luxoft.com>2015-06-17 10:53:00 +0300
commit06abe04b80b0ff11ed56a6e8a556d3f52d13a5e2 (patch)
treee985b954b40c7b42ced271397920f21780f8d80e
parente2df2fae923d3919ada027810bd557e8dc82c5da (diff)
downloadsmartdevicelink-06abe04b80b0ff11ed56a6e8a556d3f52d13a5e2.tar.gz
APPLINK-12815. Fixed sending updated RequestTypes to HMI during PTU.
-rw-r--r--src/components/policy/src/policy/src/policy_helper.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/components/policy/src/policy/src/policy_helper.cc b/src/components/policy/src/policy/src/policy_helper.cc
index 5a4682bbc..70628099d 100644
--- a/src/components/policy/src/policy/src/policy_helper.cc
+++ b/src/components/policy/src/policy/src/policy_helper.cc
@@ -76,7 +76,7 @@ bool operator()(const policy::StringsValueType& value) {
checker);
if (groups_attributes_.end() == it) {
return false;
- }
+ }
FunctionalGroupPermission group;
group.group_name = it->second.second;
group.group_alias = it->second.first;
@@ -397,7 +397,16 @@ void policy::CheckAppPolicy::SetPendingPermissions(
case RESULT_REQUEST_TYPE_CHANGED:
permissions_diff.priority.clear();
permissions_diff.requestTypeChanged = true;
- permissions_diff.requestType = pm_->GetAppRequestTypes(app_id);
+ {
+ // Getting RequestTypes from PTU (not from cache)
+ policy_table::RequestTypes::const_iterator it_request_type =
+ app_policy.second.RequestType->begin();
+ for (;it_request_type != app_policy.second.RequestType->end();
+ ++it_request_type) {
+ permissions_diff.requestType.push_back(EnumToJsonString(*it_request_type));
+ }
+ }
+
break;
default:
return;