From 06abe04b80b0ff11ed56a6e8a556d3f52d13a5e2 Mon Sep 17 00:00:00 2001 From: Andrey Oleynik Date: Thu, 14 May 2015 18:29:23 +0300 Subject: APPLINK-12815. Fixed sending updated RequestTypes to HMI during PTU. --- src/components/policy/src/policy/src/policy_helper.cc | 13 +++++++++++-- 1 file 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; -- cgit v1.2.1