Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • lucuma 261 posts 563 karma points
    Nov 30, 2015 @ 14:49
    lucuma
    0

    Validate Member in One Group Only on Saving Event

    Is there a way to prevent a user from being in more than one member group. I've looked into the MemberService.Saving event and the groups don't seem be be assigned there to be validated and cancelled..

    Looking for something like:

    private void MemberService_Saving(IMemberService sender, SaveEventArgs<IMember> e)
            {
                foreach(var m in e.SavedEntities)
                {
                      if (m.Groups.Count>1) e.Cancel = true;                  
                }
            }
    
  • lucuma 261 posts 563 karma points
    Jan 05, 2016 @ 14:59
    lucuma
    0

    Nobody?

Please Sign in or register to post replies

Write your reply to:

Draft