From e92a5336f28934fc026ba878ec2e7f484a8bc41e Mon Sep 17 00:00:00 2001 From: Mayyhem Date: Thu, 5 Dec 2024 13:21:49 -0500 Subject: [PATCH] Change optional parameters to required --- src/CommonLib/Processors/ACLProcessor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CommonLib/Processors/ACLProcessor.cs b/src/CommonLib/Processors/ACLProcessor.cs index f63c8ad2..49e0b13f 100644 --- a/src/CommonLib/Processors/ACLProcessor.cs +++ b/src/CommonLib/Processors/ACLProcessor.cs @@ -235,7 +235,7 @@ public IAsyncEnumerable ProcessACL(ResolvedSearchResult result, IDirectoryO { return (Array.Empty(), false, false); } - return await ProcessACL(descriptor, result.Domain, result.ObjectType, searchResult.HasLAPS(), result.DisplayName, checkForOwnerRights); + return await ProcessACL(descriptor, result.Domain, result.ObjectType, searchResult.HasLAPS(), checkForOwnerRights, result.DisplayName); } /// @@ -251,7 +251,7 @@ public IAsyncEnumerable ProcessACL(ResolvedSearchResult result, IDirectoryO public async IAsyncEnumerable ProcessACL(byte[] ntSecurityDescriptor, string objectDomain, Label objectType, bool hasLaps, string objectName = "") { - var (aces, _, _) = await ProcessACL(ntSecurityDescriptor, objectDomain, objectType, hasLaps, objectName, true); + var (aces, _, _) = await ProcessACL(ntSecurityDescriptor, objectDomain, objectType, hasLaps, true, objectName); foreach (var ace in aces) { yield return ace; @@ -259,7 +259,7 @@ public async IAsyncEnumerable ProcessACL(byte[] ntSecurityDescriptor, strin } public async Task<(ACE[], bool, bool)> ProcessACL(byte[] ntSecurityDescriptor, string objectDomain, - Label objectType, bool hasLaps, string objectName = "", bool checkForOwnerRights = true) + Label objectType, bool hasLaps, bool checkForOwnerRights, string objectName) { var aces = new List(); bool isAnyPermissionForOwnerRightsSid = false;