Get list of member permission groups on MemberService.Saving event
Hi,
I need to set a property value depending on what permission group a member is in. Can you get a list of member permission groups on the MemberService.Saving event.
Unable to use System.Web.Security.Roles.GetRolesForUser as role hasn't been set.
MemberService.AssignedRoles event seems to fire after Saving event.
Afraid that method just returns all possible roles for a member.
I'm trying to get a property after a role is assigned. However the event fires after the saving/saved event which means if someone re-saves after changing the role the update is overwritten.
In the end I had to abstract the functions into a separate method and call it against Saving & AssignedRoles events so it wasn't override if someone set a role then resaved afterwards.
Get list of member permission groups on MemberService.Saving event
Hi,
I need to set a property value depending on what permission group a member is in. Can you get a list of member permission groups on the MemberService.Saving event.
Unable to use System.Web.Security.Roles.GetRolesForUser as role hasn't been set.
MemberService.AssignedRoles event seems to fire after Saving event.
Cheers
John
Is this what you're looking for?
Hi Ryan,
Afraid that method just returns all possible roles for a member.
I'm trying to get a property after a role is assigned. However the event fires after the saving/saved event which means if someone re-saves after changing the role the update is overwritten.
In the end I had to abstract the functions into a separate method and call it against Saving & AssignedRoles events so it wasn't override if someone set a role then resaved afterwards.
is working on a reply...