diff --git a/SuperUserOnlyRestrictions.php b/SuperUserOnlyRestrictions.php index c4b39ea..612bbc2 100644 --- a/SuperUserOnlyRestrictions.php +++ b/SuperUserOnlyRestrictions.php @@ -42,6 +42,7 @@ public function registerEvents() 'Controller.UsersManager.userSettings' => 'restrictAccess', 'Controller.Widgetize.index' => 'restrictAccess', 'Controller.API.listAllAPI' => 'restrictAccess', + 'Controller.CoreAdminHome.trackingCodeGenerator' => 'restrictAccess', ]; } @@ -50,7 +51,8 @@ public function registerEvents() */ public function restrictAccess() { - if(isset($this->pluginConfig['super_user_only_restrictions_enabled']) && $this->pluginConfig['super_user_only_restrictions_enabled']){ + if(isset($this->pluginConfig['super_user_only_restrictions_enabled']) + && $this->pluginConfig['super_user_only_restrictions_enabled']) { Piwik::checkUserIsNotAnonymous(); Piwik::checkUserHasSuperUserAccess(); }