protected override void OnPreInit(EventArgs e) { base.OnPreInit(e); _valideShareLink = !string.IsNullOrEmpty(FileShareLink.Parse(RequestShareLinkKey)); CheckAuth(); if (!TenantExtra.GetTenantQuota().DocsEdition) { Response.Redirect(FilesLinkUtility.FileHandlerPath + "?" + Context.Request.QueryString + (string.IsNullOrEmpty(Context.Request[FilesLinkUtility.Action]) ? "&" + FilesLinkUtility.Action + "=view" : string.Empty)); } if (CoreContext.Configuration.PartnerHosted) { var hostedPartner = CoreContext.PaymentManager.GetApprovedPartner(); if (hostedPartner == null || string.IsNullOrEmpty(hostedPartner.AuthorizedKey)) { Response.Redirect(FilesLinkUtility.FileHandlerPath + "?" + Context.Request.QueryString + (string.IsNullOrEmpty(Context.Request[FilesLinkUtility.Action]) ? "&" + FilesLinkUtility.Action + "=view" : string.Empty)); } } if (ItsTry) { SetLanguage(false); } }
protected override void OnPreInit(EventArgs e) { base.OnPreInit(e); _valideShareLink = !string.IsNullOrEmpty(FileShareLink.Parse(RequestShareLinkKey)); CheckAuth(); }
protected override void OnPreInit(EventArgs e) { base.OnPreInit(e); _valideShareLink = !string.IsNullOrEmpty(FileShareLink.Parse(RequestShareLinkKey)); CheckAuth(); if (!TenantExtra.GetTenantQuota().DocsEdition) { Response.Redirect(CommonLinkUtility.FileHandlerPath + "?" + Context.Request.QueryString + (string.IsNullOrEmpty(Context.Request[CommonLinkUtility.Action]) ? "&" + CommonLinkUtility.Action + "=view" : string.Empty)); } }