fix error on receiving mms while dpm disallowed 97/107197/2 accepted/tizen/3.0/common/20161228.162157 accepted/tizen/3.0/ivi/20161228.091322 accepted/tizen/3.0/mobile/20161228.091237 accepted/tizen/3.0/wearable/20161228.091302 submit/tizen_3.0/20161227.064027
authorKyeonghun Lee <kh9090.lee@samsung.com>
Tue, 27 Dec 2016 06:24:44 +0000 (15:24 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Tue, 27 Dec 2016 06:31:19 +0000 (15:31 +0900)
Change-Id: I8def211b743851d0003b9c7ec35fe71e3ffea715
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
framework/deliver-handler/MsgDeliverHandler.cpp
plugin/mms_plugin/MmsPluginMain.cpp

index 0674164..b2e79e0 100755 (executable)
@@ -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);
index 25f5d59..9f1a33c 100755 (executable)
@@ -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;
                }