Ejemplo n.º 1
0
        protected string GetProductLabel(IWebItem product)
        {
            if (product.ID == WebItemManager.CRMProductID)
            {
                return(Resource.ProductCRMAndVoIP);
            }

            if (product.ID == WebItemManager.MailProductID &&
                SetupInfo.IsVisibleSettings("AdministrationPage") &&
                CurrentUser.IsAdmin() &&
                (!CoreContext.Configuration.Standalone || MailServiceHelper.IsMailServerAvailable()))
            {
                return(Resource.AdministrationLabel);
            }

            return(HttpUtility.HtmlEncode(product.Name));
        }
Ejemplo n.º 2
0
 public static bool IsAdministrationPageAvailable()
 {
     return(SetupInfo.IsVisibleSettings <AdministrationPage>() &&
            (!CoreContext.Configuration.Standalone || MailServiceHelper.IsMailServerAvailable()));
 }