[mapguide-commits] r7856 - branches/2.5/MgDev/Server/src/Services/Resource

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Sep 10 23:51:26 PDT 2013


Author: jng
Date: 2013-09-10 23:51:26 -0700 (Tue, 10 Sep 2013)
New Revision: 7856

Modified:
   branches/2.5/MgDev/Server/src/Services/Resource/ResourceHeaderManager.cpp
Log:
#2346: Backport r7832 to 2.5 branch

Modified: branches/2.5/MgDev/Server/src/Services/Resource/ResourceHeaderManager.cpp
===================================================================
--- branches/2.5/MgDev/Server/src/Services/Resource/ResourceHeaderManager.cpp	2013-09-10 11:12:15 UTC (rev 7855)
+++ branches/2.5/MgDev/Server/src/Services/Resource/ResourceHeaderManager.cpp	2013-09-11 06:51:26 UTC (rev 7856)
@@ -2878,15 +2878,15 @@
 
     CheckParentPermission(resource, MgResourcePermission::ReadWrite);
 
-    // Delete the resource.
-
-    MgResourceDefinitionManager::DeleteDocument(xmlDoc, updateContext);
-
     // Update the local permission cache.
 
     UpdatePermissionCache(MgResourceService::opIdDeleteResource,
         resource.ToString(), MgResourcePermission::ReadWrite, xmlDoc, false);
 
+    // Delete the resource.
+
+    MgResourceDefinitionManager::DeleteDocument(xmlDoc, updateContext);
+
     MG_RESOURCE_SERVICE_CATCH_AND_THROW(L"MgResourceHeaderManager.DeleteDocument")
 }
 



More information about the mapguide-commits mailing list