Move fetch Relationship details to processor
[civicrm-core.git] / CRM / Core / Permission.php
index 5a3f0eff7aa0df9133a8beebcbe29b8802b25348..57d58ec7471762797882f9392fe05c4255a428f1 100644 (file)
@@ -621,7 +621,7 @@ class CRM_Core_Permission {
     }
 
     foreach ($components as $comp) {
-      $perm = $comp->getPermissions(FALSE, $descriptions);
+      $perm = $comp->getPermissions($all, $descriptions);
       if ($perm) {
         $info = $comp->getInfo();
         foreach ($perm as $p => $attr) {
@@ -1449,7 +1449,8 @@ class CRM_Core_Permission {
 
     // Profile permissions
     $permissions['profile'] = [
-      'get' => [], // the profile will take care of this
+      // the profile will take care of this
+      'get' => [],
     ];
 
     $permissions['uf_group'] = [