CRM_Core_Permission - Allow checking of anon-perms by authenticated-users
[civicrm-core.git] / CRM / Core / Permission / Drupal6.php
index d478f09b5dbc9754534fb3c5757652a720986aa2..5bae3568bdfa6260305df908a45808f78defaa60 100644 (file)
@@ -67,7 +67,7 @@ class CRM_Core_Permission_Drupal6 extends CRM_Core_Permission_DrupalBase {
     }
     if (function_exists('user_access')) {
       $account = NULL;
-      if ($userId) {
+      if ($userId || $userId === 0) {
         $account = user_load($userId);
       }
       return user_access($str, $account);