예제 #1
0
        protected override void OnCreated(object sender, NodeEventArgs e)
        {
            base.OnCreated(sender, e);

            using (new SystemAccount())
            {
                var parent = GroupMembershipObserver.GetFirstOrgUnitParent(e.SourceNode);
                if (parent != null)
                {
                    SecurityHandler.AddUsersToGroup(parent.Id, new[] { e.SourceNode.Id });
                }
            }
        }