diff --git a/src/Umbraco.Tests/Services/MemberTypeServiceTests.cs b/src/Umbraco.Tests/Services/MemberTypeServiceTests.cs index b607290c5e..459daa3da6 100644 --- a/src/Umbraco.Tests/Services/MemberTypeServiceTests.cs +++ b/src/Umbraco.Tests/Services/MemberTypeServiceTests.cs @@ -1,13 +1,10 @@ using System; -using System.Collections.Generic; using System.Linq; using System.Threading; using NUnit.Framework; -using umbraco.cms.presentation.create.controls; using Umbraco.Core; using Umbraco.Core.Models; using Umbraco.Core.Persistence.Dtos; -using Umbraco.Tests.TestHelpers; using Umbraco.Tests.TestHelpers.Entities; using Umbraco.Tests.Testing; diff --git a/src/Umbraco.Tests/UI/LegacyDialogTests.cs b/src/Umbraco.Tests/UI/LegacyDialogTests.cs index 5c8a621e10..9f1e474bd9 100644 --- a/src/Umbraco.Tests/UI/LegacyDialogTests.cs +++ b/src/Umbraco.Tests/UI/LegacyDialogTests.cs @@ -23,12 +23,12 @@ namespace Umbraco.Tests.UI } } - [TestCase(typeof(macroTasks), Constants.Applications.Settings)] - public void Check_Assigned_Apps_For_Tasks(Type taskType, string app) - { - var task = (LegacyDialogTask)Activator.CreateInstance(taskType); - Assert.AreEqual(task.AssignedApp, app); - } + //[TestCase(typeof(macroTasks), Constants.Applications.Settings)] + //public void Check_Assigned_Apps_For_Tasks(Type taskType, string app) + //{ + // var task = (LegacyDialogTask)Activator.CreateInstance(taskType); + // Assert.AreEqual(task.AssignedApp, app); + //} } } diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index 0ff158dadb..d51c2f7814 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -80,7 +80,6 @@ - @@ -134,7 +133,6 @@ noNodes.aspx - ASPXCodeBehind @@ -142,39 +140,6 @@ True Settings.settings - - create.aspx - ASPXCodeBehind - - - create.aspx - - - editMacro.aspx - ASPXCodeBehind - - - editMacro.aspx - - - default.Master - ASPXCodeBehind - - - default.Master - - - ASPXCodeBehind - - - umbracoDialog.Master - - - ASPXCodeBehind - - - umbracoPage.Master - @@ -197,12 +162,11 @@ + + - - - @@ -261,10 +225,6 @@ SettingsSingleFileGenerator Settings.Designer.cs - - UI.xml - Designer - Designer @@ -277,7 +237,6 @@ - Designer @@ -288,7 +247,6 @@ - Designer @@ -348,15 +306,10 @@ Web.Template.config Designer - - - - - Designer diff --git a/src/Umbraco.Web.UI/Umbraco/Create.aspx.cs b/src/Umbraco.Web.UI/Umbraco/Create.aspx.cs deleted file mode 100644 index 7848a5976b..0000000000 --- a/src/Umbraco.Web.UI/Umbraco/Create.aspx.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System; -using System.Web; -using Umbraco.Web._Legacy.UI; - -namespace Umbraco.Web.UI.Umbraco -{ - public partial class CreateDialog : global::umbraco.cms.presentation.Create - { - - protected override void OnLoad(EventArgs e) - { - if (SecurityCheck(Request.QueryString["nodeType"])) - { - //if we're allowed, then continue - base.OnLoad(e); - } - else - { - //otherwise show an error - UI.Visible = false; - AccessError.Visible = true; - } - } - - private bool SecurityCheck(string nodeTypeAlias) - { - return LegacyDialogHandler.UserHasCreateAccess( - new HttpContextWrapper(Context), - Security.CurrentUser, - nodeTypeAlias); - } - - } -} diff --git a/src/Umbraco.Web.UI/Umbraco/Create.aspx.designer.cs b/src/Umbraco.Web.UI/Umbraco/Create.aspx.designer.cs deleted file mode 100644 index c17aadcbf2..0000000000 --- a/src/Umbraco.Web.UI/Umbraco/Create.aspx.designer.cs +++ /dev/null @@ -1,25 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Umbraco.Web.UI.Umbraco { - - - public partial class CreateDialog - { - - /// - /// AccessError control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.PlaceHolder AccessError; - } -} diff --git a/src/Umbraco.Web.UI/Umbraco/config/create/UI.Release.xml b/src/Umbraco.Web.UI/Umbraco/config/create/UI.Release.xml deleted file mode 100644 index 635174b9da..0000000000 --- a/src/Umbraco.Web.UI/Umbraco/config/create/UI.Release.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - -
Macro
- /create/simple.ascx - - - -
- -
Macro
- /create/simple.ascx - - - - -
-
diff --git a/src/Umbraco.Web.UI/Umbraco/config/create/UI.xml b/src/Umbraco.Web.UI/Umbraco/config/create/UI.xml deleted file mode 100644 index c075a0b8b9..0000000000 --- a/src/Umbraco.Web.UI/Umbraco/config/create/UI.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - -
Macro
- /create/simple.ascx - - - -
- -
Macro
- /create/simple.ascx - - - - -
-
diff --git a/src/Umbraco.Web.UI/Umbraco/create.aspx b/src/Umbraco.Web.UI/Umbraco/create.aspx deleted file mode 100644 index d69bffc4b3..0000000000 --- a/src/Umbraco.Web.UI/Umbraco/create.aspx +++ /dev/null @@ -1,43 +0,0 @@ -<%@ Page Language="c#" MasterPageFile="masterpages/umbracoDialog.Master" Codebehind="CreateDialog.aspx.cs" AutoEventWireup="True" Inherits="Umbraco.Web.UI.Umbraco.CreateDialog" %> -<%@ Register Namespace="umbraco" TagPrefix="umb" Assembly="Umbraco.Web" %> - - - - - - - - - -
-

- The current user does not have access to create this type of object -

-
-
-
- - - - \ No newline at end of file diff --git a/src/Umbraco.Web.UI/Umbraco/create/simple.ascx b/src/Umbraco.Web.UI/Umbraco/create/simple.ascx deleted file mode 100644 index df8056019d..0000000000 --- a/src/Umbraco.Web.UI/Umbraco/create/simple.ascx +++ /dev/null @@ -1,22 +0,0 @@ -<%@ Control Language="c#" AutoEventWireup="True" Inherits="umbraco.cms.presentation.create.controls.simple" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> -<%@ Register TagPrefix="cc1" Namespace="Umbraco.Web._Legacy.Controls" Assembly="Umbraco.Web" %> - - - - - * - - - - - <%=Services.TextService.Localize("cancel")%> - - - - - - -