From 80716a18d20abb9c554f633ac9c1b76fb3e5fa4c Mon Sep 17 00:00:00 2001 From: Mole Date: Wed, 17 Feb 2021 10:16:00 +0100 Subject: [PATCH] Fix mistaken use of GetId() --- .../Filters/FilterAllowedOutgoingContentAttribute.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs b/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs index 363bd1a5d0..38c0333d8b 100644 --- a/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs +++ b/src/Umbraco.Web.BackOffice/Filters/FilterAllowedOutgoingContentAttribute.cs @@ -95,7 +95,7 @@ namespace Umbraco.Web.BackOffice.Filters var ids = new List(); for (var i = 0; i < length; i++) { - ids.Add(((dynamic)items[i]).GetId()); + ids.Add(((dynamic)items[i]).Id); } //get all the permissions for these nodes in one call var permissions = _userService.GetPermissions(user, ids.ToArray()); @@ -104,7 +104,7 @@ namespace Umbraco.Web.BackOffice.Filters { //get the combined permission set across all user groups for this node //we're in the world of dynamics here so we need to cast - var nodePermission = ((IEnumerable)permissions.GetAllPermissions(item.GetId())).ToArray(); + var nodePermission = ((IEnumerable)permissions.GetAllPermissions(item.Id)).ToArray(); //if the permission being checked doesn't exist then remove the item if (nodePermission.Contains(_permissionToCheck.ToString(CultureInfo.InvariantCulture)) == false)