Skip to content

Commit

Permalink
Fixes a return type issue in User::allowedTo()
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
  • Loading branch information
Sesquipedalian committed Mar 9, 2024
1 parent a371bbf commit 19ea832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 19ea832

Please sign in to comment.