Swapped System.RecycleBinMedia string conversions
to use the `System.RecycleBinMediaString` constant. This saves on integer parsing and reduces the number of new strings being created. Since the `System.RecycleBinMedia` is `-21`, it didn't need the culture invariant conversion.
This commit is contained in:
@@ -166,7 +166,7 @@ namespace Umbraco.Core.Models
|
||||
|
||||
internal static bool HasMediaBinAccess(this IUser user, IEntityService entityService)
|
||||
{
|
||||
return ContentPermissionsHelper.HasPathAccess(Constants.System.RecycleBinMedia.ToInvariantString(), user.CalculateMediaStartNodeIds(entityService), Constants.System.RecycleBinMedia);
|
||||
return ContentPermissionsHelper.HasPathAccess(Constants.System.RecycleBinMediaString, user.CalculateMediaStartNodeIds(entityService), Constants.System.RecycleBinMedia);
|
||||
}
|
||||
|
||||
internal static bool HasPathAccess(this IUser user, IContent content, IEntityService entityService)
|
||||
|
||||
Reference in New Issue
Block a user