From 19ea832e9c3fc5db77941b8cb76242c93455333e Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Fri, 8 Mar 2024 22:44:24 -0700 Subject: [PATCH] Fixes a return type issue in User::allowedTo() Signed-off-by: Jon Stovell --- Sources/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(