From 764106fa60d781fb9910c7a586e38f999a3dbfd0 Mon Sep 17 00:00:00 2001 From: godylockz <81207744+godylockz@users.noreply.github.com> Date: Wed, 13 Sep 2023 06:54:25 -0400 Subject: [PATCH] Fix BUG #70 --- src/CommonLib/Processors/ACLProcessor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/CommonLib/Processors/ACLProcessor.cs b/src/CommonLib/Processors/ACLProcessor.cs index 0add6a00..27afebac 100644 --- a/src/CommonLib/Processors/ACLProcessor.cs +++ b/src/CommonLib/Processors/ACLProcessor.cs @@ -243,8 +243,7 @@ public IEnumerable ProcessACL(byte[] ntSecurityDescriptor, string objectDom //Cool ACE courtesy of @rookuu. Allows a principal to add itself to a group and no one else if (aceRights.HasFlag(ActiveDirectoryRights.Self) && !aceRights.HasFlag(ActiveDirectoryRights.WriteProperty) && - !aceRights.HasFlag(ActiveDirectoryRights.GenericWrite) && objectType == Label.Group && - aceType == ACEGuids.WriteMember) + !aceRights.HasFlag(ActiveDirectoryRights.GenericWrite) && objectType == Label.Group) yield return new ACE { PrincipalType = resolvedPrincipal.ObjectType,