Skip to content

Commit 90ccb0d

Browse files
committed
Disable Lighthouse check
1 parent fc6e0cd commit 90ccb0d

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/plugin/CpNavItem.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ public static function get(array &$cpNavItem, Settings $settings, BadgeCountServ
6767
}
6868
}
6969

70-
if ($currentUser->can('ohdear:view-lighthouse')) {
71-
$cpNavItem['subnav']['lighthouse'] = [
72-
'url' => 'ohdear/lighthouse',
73-
'label' => \Craft::t('ohdear', 'Lighthouse'),
74-
];
75-
}
70+
// if ($currentUser->can('ohdear:view-lighthouse')) {
71+
// $cpNavItem['subnav']['lighthouse'] = [
72+
// 'url' => 'ohdear/lighthouse',
73+
// 'label' => \Craft::t('ohdear', 'Lighthouse'),
74+
// ];
75+
// }
7676

7777
if ($currentUser->can('ohdear:view-certificate-health')) {
7878
$cpNavItem['subnav']['certificate-health'] = [

src/plugin/Permissions.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ public static function handle(RegisterUserPermissionsEvent $event)
6161
],
6262
],
6363
],
64-
'ohdear:view-lighthouse' => [
65-
'label' => \Craft::t('ohdear', 'View Lighthouse'),
66-
'nested' => [
67-
'ohdear:toggle-lighthouse-check' => [
68-
'label' => \Craft::t('ohdear', 'Toggle lighthouse check'),
69-
],
70-
'ohdear:request-lighthouse-check' => [
71-
'label' => \Craft::t('ohdear', 'Request lighthouse check'),
72-
],
73-
],
74-
],
64+
// 'ohdear:view-lighthouse' => [
65+
// 'label' => \Craft::t('ohdear', 'View Lighthouse'),
66+
// 'nested' => [
67+
// 'ohdear:toggle-lighthouse-check' => [
68+
// 'label' => \Craft::t('ohdear', 'Toggle lighthouse check'),
69+
// ],
70+
// 'ohdear:request-lighthouse-check' => [
71+
// 'label' => \Craft::t('ohdear', 'Request lighthouse check'),
72+
// ],
73+
// ],
74+
// ],
7575
'ohdear:view-application-health' => [
7676
'label' => \Craft::t('ohdear', 'View application health'),
7777
'nested' => [

0 commit comments

Comments
 (0)