Building a custom module off of AS where users will have access only if they belong to that group.
In implementing jquery for ajax - I want to verify my user has access to the group in question - since I have to pass the group id in my $.ajax post.
I can already verify who my user is via DNN - but I want to make sure that the user actually belongs to the group before I add items to my custom module. I'm not seeing anything that does this in the AS API --- is there a "round about" way of achieving the desired result?
Ideally I would think:
bool theUserBelongs = new Active.Modules.Social.API.GroupsAPI().CanAccessGroup(activeSocialGroupId, userId);