From: Kyeonghun Lee Date: Tue, 27 Dec 2016 06:24:44 +0000 (+0900) Subject: fix error on receiving mms while dpm disallowed X-Git-Tag: accepted/tizen/3.0/ivi/20161228.091322 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Faccepted%2Ftizen%2F3.0%2Fivi%2F20161228.091322;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git fix error on receiving mms while dpm disallowed Change-Id: I8def211b743851d0003b9c7ec35fe71e3ffea715 Signed-off-by: Kyeonghun Lee --- diff --git a/framework/deliver-handler/MsgDeliverHandler.cpp b/framework/deliver-handler/MsgDeliverHandler.cpp index 0674164..b2e79e0 100755 --- a/framework/deliver-handler/MsgDeliverHandler.cpp +++ b/framework/deliver-handler/MsgDeliverHandler.cpp @@ -596,7 +596,6 @@ msg_error_t MsgHandleMMS(MSG_MESSAGE_INFO_S *pMsgInfo, bool *pSendNoti) if (msg_check_dpm_policy(pMsgInfo->msgType.mainType) == false) { MSG_DEBUG("Messaging is restricted by DPM policy."); pMsgInfo->bRestricted = true; - *pSendNoti = false; } err = MsgStoAddMessage(pMsgInfo, NULL); diff --git a/plugin/mms_plugin/MmsPluginMain.cpp b/plugin/mms_plugin/MmsPluginMain.cpp index 25f5d59..9f1a33c 100755 --- a/plugin/mms_plugin/MmsPluginMain.cpp +++ b/plugin/mms_plugin/MmsPluginMain.cpp @@ -114,7 +114,7 @@ msg_error_t MmsSubmitRequest(MSG_REQUEST_INFO_S *pReqInfo) MSG_BEGIN(); try { - if (msg_check_dpm_policy(pReqInfo->msgInfo.msgType.mainType) == false) { + if (pReqInfo->msgInfo.msgType.subType != MSG_GET_MMS && msg_check_dpm_policy(pReqInfo->msgInfo.msgType.mainType) == false) { MSG_DEBUG("Messaging is restricted by DPM policy."); return MSG_ERR_DPM_RESTRICT; }