From db957c8eaae2bf3b1b959714ed871fcbd73999df Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 19 Jul 2017 14:15:30 +1000 Subject: [PATCH] removes unused method --- src/Umbraco.Web/Security/WebSecurity.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Umbraco.Web/Security/WebSecurity.cs b/src/Umbraco.Web/Security/WebSecurity.cs index 588b9c0176..f59605879f 100644 --- a/src/Umbraco.Web/Security/WebSecurity.cs +++ b/src/Umbraco.Web/Security/WebSecurity.cs @@ -184,24 +184,6 @@ namespace Umbraco.Web.Security return membershipProvider != null ? membershipProvider.GetUser(username, setOnline) : null; } - /// - /// Validates the user node tree permissions. - /// - /// - /// The path. - /// The action. - /// - internal bool ValidateUserNodeTreePermissions(User umbracoUser, string path, string action) - { - var permissions = umbracoUser.GetPermissions(path); - if (permissions.IndexOf(action, StringComparison.Ordinal) > -1 && (path.Contains("-20") || ("," + path + ",").Contains("," + umbracoUser.StartNodeId + ","))) - return true; - - var user = umbracoUser; - LogHelper.Info("User {0} has insufficient permissions in UmbracoEnsuredPage: '{1}', '{2}', '{3}'", () => user.Name, () => path, () => permissions, () => action); - return false; - } - /// /// Validates the current user to see if they have access to the specified app ///