MDL-62162 policy: Define context when accessing to viewall.php
authorSara Arjona <sara@moodle.com>
Mon, 23 Apr 2018 16:29:27 +0000 (18:29 +0200)
committerSara Arjona <sara@moodle.com>
Mon, 23 Apr 2018 16:29:27 +0000 (18:29 +0200)
admin/tool/policy/classes/output/page_viewalldoc.php

index d6db0b8..232547a 100644 (file)
@@ -54,8 +54,8 @@ class page_viewalldoc implements renderable, templatable {
      */
     public function __construct() {
 
      */
     public function __construct() {
 
-        $this->prepare_policies();
         $this->prepare_global_page_access();
         $this->prepare_global_page_access();
+        $this->prepare_policies();
     }
 
     /**
     }
 
     /**