/** * Add the advanced notifications view to profiles. * * @param ProfileController $Sender */ public function profileController_CustomNotificationPreferences_Handler($Sender) { if (Gdn::session()->checkPermission('Garden.AdvancedNotifications.Allow')) { include $Sender->fetchViewLocation('notificationpreferences', 'vanillasettings', 'vanilla'); } }