Description
The code was completely wrong! I was counting all the memberships for a group and not the ways in which a subject was a member of a group. Also i wasn't filtering the Memberships for the subject. this lead to info for a completely wrong subject being shown also.