enotice fix
authorEileen McNaughton <eileen@fuzion.co.nz>
Wed, 24 Jun 2015 21:45:40 +0000 (09:45 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Wed, 24 Jun 2015 21:45:40 +0000 (09:45 +1200)
CRM/Core/BAO/Dashboard.php

index c7dcd923da71ecaf5df98e6feca70f90df4351f9..a39f89b49e2117addb797dbfe72da166557039d1 100644 (file)
@@ -177,7 +177,7 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard {
       foreach ($defaultDashlets as $id => $defaultDashlet) {
         $dashboard_id = $defaultDashlet['dashboard_id'];
         if (!self::checkPermission($getDashlets['values'][$dashboard_id]['permission'],
-          $getDashlets['values'][$dashboard_id]['permission_operator'])
+          CRM_Utils_Array::value('permission_operator', $getDashlets['values'][$dashboard_id]))
         ) {
           continue;
         }