Merge pull request #23258 from civicrm/5.49
[civicrm-core.git] / CRM / Core / Permission / Backdrop.php
index de90766d724d7437fea41ab395b1ea3f70c887f8..6fc230a4a324aceeb495bd57b433d1c842b48f5c 100644 (file)
@@ -68,7 +68,7 @@ class CRM_Core_Permission_Backdrop 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);