/** * * @param ProfileController $Sender */ public function ProfileController_CustomNotificationPreferneces_Handler($Sender) { if (!$Sender->Data('NoEmail') && Gdn::Session()->CheckPermission('Garden.AdvancedNotifications.Allow')) { include $Sender->FetchViewLocation('NotificationPreferences', 'Settings', 'Vanilla'); } }