Ejemplo n.º 1
0
        protected override bool AuthorizeCore(HttpContextBase httpContext)
        {
            var isAuthorized = false;

            if (httpContext.Session != null)
            {
                int caseArtifactId;
                int.TryParse(httpContext.Request.QueryString["appid"], out caseArtifactId);

                var query = new ArtifactQueries();
                var res   = query.DoesUserHaveAccessToArtifact(
                    ConnectionHelper.Helper().GetServicesManager(),
                    ExecutionIdentity.CurrentUser,
                    caseArtifactId,
                    Helpers.Constant.Guids.Tabs.ExportWorkerQueueTab,
                    "Tab");
                isAuthorized = res;
            }

            return(isAuthorized);
        }