Skip to content

Commit

Permalink
fix: toggling blockpd fails to save
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Dec 15, 2023
1 parent d5eedcc commit 91dc52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/SaveUserPreferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function handle(Saving $event)
if ($blocksPd !== null) {
$actor->assertPermission($actor->id === $user->id);

$user->blocks_byobu_pd = (bool) $user->blocks_byobu_pd;
$user->blocks_byobu_pd = (bool) ($blocksPd || $user->blocks_byobu_pd);
}
}
}

0 comments on commit 91dc52e

Please sign in to comment.