mtpfws/mtpfw/dataproviders/proxydp/src/cmtpsetobjectproplist.cpp
changeset 20 6e82ae192c3a
parent 0 d0791faffa3f
child 60 841f70763fbe
--- a/mtpfws/mtpfw/dataproviders/proxydp/src/cmtpsetobjectproplist.cpp	Fri Apr 16 15:51:48 2010 +0300
+++ b/mtpfws/mtpfw/dataproviders/proxydp/src/cmtpsetobjectproplist.cpp	Mon May 03 13:19:02 2010 +0300
@@ -27,6 +27,7 @@
 #include "cmtpsetobjectproplist.h"
 #include "mtpproxydppanic.h"
 #include "rmtpframework.h"
+#include "cmtpstoragemgr.h"
 
 /**
 Two-phase construction method
@@ -174,6 +175,10 @@
                     // Invalid object handle.
                     iResponseCode = EMTPRespCodeInvalidObjectHandle;
                     }
+                else if(!iSingletons.StorageMgr().IsReadWriteStorage(meta->Uint(CMTPObjectMetaData::EStorageId)))
+                	{
+					iResponseCode = EMTPRespCodeAccessDenied;
+                	}
                 else
                     {
                     RArray<TUint> targets;