Skip to content

Commit

Permalink
Merge pull request SimpleMachines#8131 from Sesquipedalian/allowedTo_…
Browse files Browse the repository at this point in the history
…return_type

Fixes a return type issue in User::allowedTo()
  • Loading branch information
Sesquipedalian committed Mar 9, 2024
2 parents a371bbf + 19ea832 commit 281ec48
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 281ec48

Please sign in to comment.