moves legacy actions to _Legacy namespace for now

This commit is contained in:
Shannon
2016-03-17 15:28:46 +01:00
parent 7d20557937
commit bb6b9f4ebc
98 changed files with 144 additions and 183 deletions

View File

@@ -15,7 +15,7 @@ using Umbraco.Web.Models.Trees;
using Umbraco.Web.WebApi.Filters;
using umbraco;
using System.Globalization;
using Umbraco.Web.LegacyActions;
using Umbraco.Web._Legacy.Actions;
namespace Umbraco.Web.Trees
{
@@ -268,7 +268,7 @@ namespace Umbraco.Web.Trees
internal IEnumerable<MenuItem> GetAllowedUserMenuItemsForNode(IUmbracoEntity dd)
{
var permission = Services.UserService.GetPermissions(Security.CurrentUser, dd.Path);
var actions = global::Umbraco.Web.LegacyActions.Action.FromEntityPermission(permission);
var actions = global::Umbraco.Web._Legacy.Actions.Action.FromEntityPermission(permission);
// A user is allowed to delete their own stuff
if (dd.CreatorId == Security.CurrentUser.Id && actions.Contains(ActionDelete.Instance) == false)