Author: sevein
Date: Tue Jun 26 17:24:05 2012
New Revision: 11815

Log:
Fix position of ACL check when sorting

Modified:
   trunk/apps/qubit/modules/informationobject/actions/treeViewAction.class.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/treeViewAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/treeViewAction.class.php 
Tue Jun 26 17:20:17 2012        (r11814)
+++ trunk/apps/qubit/modules/informationobject/actions/treeViewAction.class.php 
Tue Jun 26 17:24:05 2012        (r11815)
@@ -32,12 +32,6 @@
       $this->resource = $this->getRoute()->resource;
     }
 
-    // Check authorization
-    if (!QubitAcl::check($this->resource, 'update'))
-    {
-      QubitAcl::forwardUnauthorized();
-    }
-
     $sql = 'SELECT
         io.*,
         i18n.*,
@@ -102,6 +96,12 @@
 
       case 'moveAfter':
       case 'moveBefore':
+        // Check authorization
+        if (!QubitAcl::check($this->resource, 'update'))
+        {
+          QubitAcl::forwardUnauthorized();
+        }
+
         $params = 
$this->context->routing->parse(Qubit::pathInfo($request->target));
 
         if (!isset($params['_sf_route']))

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to