Example #1
0
        private void DeleteAllExplicitSetting(AclEditor aclEditor, Content content)
        {
            var explicitEntries = content.ContentHandler.Security.GetExplicitEntries();

            foreach (var explicitEntry in explicitEntries)
            {
                foreach (var permType in ActiveSchema.PermissionTypes)
                {
                    var ident = (ISecurityMember)Node.LoadNode(explicitEntry.PrincipalId);
                    aclEditor.SetPermission(ident, explicitEntry.Propagates, permType, PermissionValue.NonDefined);
                }
            }
        }