diff --git a/Plugin.php b/Plugin.php index f8ff9cf..a178493 100644 --- a/Plugin.php +++ b/Plugin.php @@ -64,8 +64,8 @@ public function registerPermissions(): array 'label' => 'vdlp.redirect::lang.permission.access_redirects.label', 'tab' => 'vdlp.redirect::lang.permission.access_redirects.tab', ], - 'vdlp.redirect.access_redirect_stats' => [ - 'label' => 'vdlp.redirect::lang.permission.access_redirect_stats.label', + 'vdlp.redirect.access_redirect_statistics' => [ + 'label' => 'vdlp.redirect::lang.permission.access_redirect_statistics.label', 'tab' => 'vdlp.redirect::lang.permission.access_redirects.tab', ], ]; @@ -167,7 +167,7 @@ public function registerNavigation(): array 'url' => Backend::url('vdlp/redirect/statistics'), 'order' => 10, 'permissions' => [ - 'vdlp.redirect.access_redirect_stats', + 'vdlp.redirect.access_redirect_statistics', ], ]; } @@ -239,7 +239,7 @@ public function registerReportWidgets(): array )), 'context' => 'dashboard', 'permissions' => [ - 'vdlp.redirect.access_redirect_stats', + 'vdlp.redirect.access_redirect_statistics', ], ]; } diff --git a/controllers/Statistics.php b/controllers/Statistics.php index 0b8d5bc..7954d3a 100644 --- a/controllers/Statistics.php +++ b/controllers/Statistics.php @@ -18,7 +18,7 @@ */ final class Statistics extends Controller { - public $requiredPermissions = ['vdlp.redirect.access_redirect_stats']; + public $requiredPermissions = ['vdlp.redirect.access_redirect_statistics']; private StatisticsHelper $helper; public function __construct() diff --git a/lang/en/lang.php b/lang/en/lang.php index 9d21288..2f4cc38 100644 --- a/lang/en/lang.php +++ b/lang/en/lang.php @@ -12,7 +12,7 @@ 'label' => 'Redirects', 'tab' => 'Redirects', ], - 'access_redirect_stats' => [ + 'access_redirect_statistics' => [ 'label' => 'Redirect Statistics', ], ], diff --git a/lang/nl/lang.php b/lang/nl/lang.php index 4ef7c91..c3fce6f 100644 --- a/lang/nl/lang.php +++ b/lang/nl/lang.php @@ -12,6 +12,9 @@ 'label' => 'Redirects', 'tab' => 'Redirects', ], + 'access_redirect_statistics' => [ + 'label' => 'Redirect statistieken', + ], ], 'navigation' => [ 'menu_label' => 'Redirects',