mtpfws/mtpfw/dataproviders/dputility/src/cmtpsetobjectpropvalue.cpp
branchRCL_3
changeset 19 ef55b168cedb
parent 11 4843bb5893b6
child 47 63cf70d3ecd8
child 48 debf68073f2f
--- a/mtpfws/mtpfw/dataproviders/dputility/src/cmtpsetobjectpropvalue.cpp	Wed Apr 14 16:49:36 2010 +0300
+++ b/mtpfws/mtpfw/dataproviders/dputility/src/cmtpsetobjectpropvalue.cpp	Tue Apr 27 17:30:23 2010 +0300
@@ -28,6 +28,7 @@
 #include "mtpframeworkconst.h"
 #include "rmtpdpsingletons.h"
 #include "rmtputility.h"
+#include "cmtpstoragemgr.h"
 
 /**
 Verification data for the SetObjectPropValue request
@@ -109,6 +110,11 @@
     CMTPObjectMetaData* meta = iRequestChecker->GetObjectInfo(handle);
     __ASSERT_DEBUG(meta, Panic(EMTPDpObjectNull));
     
+    if(!iSingleton.StorageMgr().IsReadWriteStorage(meta->Uint(CMTPObjectMetaData::EStorageId)))
+   		{
+		responseCode = EMTPRespCodeAccessDenied;
+   		}
+    
 	if(responseCode == EMTPRespCodeOK)
 		{
 		TUint32 propCode = Request().Uint32(TMTPTypeRequest::ERequestParameter2);