MiniProfiler on Dashboard Orchard

Mar 21, 2014 at 9:38 AM
Hello,

First of all I would like to say thanks for this great module.

My question is: how to enable MiniProfiler in the Dashboard? I would like to profile my implementation of import module.

Best regards,

Jérôme
Mar 21, 2014 at 10:26 AM
I just found by myself ^^

In ProfilerFilter.cs, I comment this part:
        private bool IsActivable()
        {
            // activate on front-end only
            //if (AdminFilter.IsApplied(new RequestContext(this.workContext.HttpContext, new RouteData())))
            //{
            //    return false;
            //}

            // if not logged as a site owner, still activate if it's a local request (development machine)
            if (!this.authorizer.Authorize(StandardPermissions.SiteOwner))
            {
                return this.workContext.HttpContext.Request.IsLocal;
            }

            return true;
        }