protected void UninstallButton_Click(object sender, EventArgs e)
        {
            SuperOfficeAuthHelper.Authorize();

            var wpHelper = new WebPanelHelper();

            wpHelper.DeleteAllWebPanels();

            this.ProvideFeedbackToTheUser();
        }
예제 #2
0
        protected void UninstallButton_Click(object sender, EventArgs e)
        {
            SuperOfficeAuthHelper.Authorize();


            if (SoContext.CurrentPrincipal.HasFunctionRight("admin-all"))
            {
                var wpHelper = new WebPanelHelper();
                wpHelper.DeleteAllWebPanels();

                this.ProvideFeedbackToTheUser();
            }
        }