We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f51f94f commit ff6f026Copy full SHA for ff6f026
src/config/areas.php
@@ -1,10 +1,16 @@
1
<?php
2
3
+use Kirby\Exception\LogicException;
4
use LukasBestle\Versions\Plugin;
5
6
return [
7
'versions' => function ($kirby) {
- $accessPermission = Plugin::instance()->hasPermission('access');
8
+ try {
9
+ $accessPermission = Plugin::instance()->hasPermission('access');
10
+ } catch (LogicException $e) {
11
+ // area was loaded by Kirby without a logged-in user
12
+ $accessPermission = false;
13
+ }
14
15
16
'label' => t('view.versions'),
0 commit comments