Skip to content

Commit 228ddd1

Browse files
fix: check if page has been unlocked already
1 parent 02b13f1 commit 228ddd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/KirbyExtended/LockedPages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function isLocked(?Page $page): bool
2424
}
2525

2626
$access = kirby()->session()->data()->get(LockedPages::SESSION_KEY, []);
27-
if (isset($access[$protectedPage->id()])) {
27+
if (in_array($protectedPage->id(), $access)) {
2828
return false;
2929
}
3030

0 commit comments

Comments
 (0)