diff --git a/Sources/User.php b/Sources/User.php index 9b86ac728e..97b06400f4 100644 --- a/Sources/User.php +++ b/Sources/User.php @@ -2299,7 +2299,7 @@ public function allowedTo(string|array $permission, int|array|null $boards = nul $cache_key = hash('md5', $this->id . '-' . implode(',', $permission) . '-' . implode(',', $boards) . '-' . (int) $any); if (isset($this->perm_cache[$cache_key])) { - return $this->perm_cache[$cache_key]; + return !empty($this->perm_cache[$cache_key]); } $request = Db::$db->query(