public void OnResultExecuting(ResultExecutingContext filterContext)
        {
            if (!(filterContext.Result is ViewResult))
            {
                return;
            }

            var theme   = _themeContext.GetPreviewTheme();
            var storeId = _services.StoreContext.GetPreviewStore();

            if (theme == null && storeId == null)
            {
                return;
            }

            if (!_services.Permissions.Authorize(StandardPermissionProvider.ManageThemes))
            {
                return;
            }

            _widgetProvider.Value.RegisterAction(
                "body_end_html_tag_before",
                "PreviewTool",
                "Theme",
                new { area = "Admin" });
        }