I'm finding it hard to find an easy way of finding if a user assigned to a capability is a given their role via a hidden assignment.....
I 'could' call get_users_by capability once including hidden users, and then a 2nd time without, and compare the 2 arrays, but that would take a performance hit!
I need to return all hidden users on the first call, as hidden users should be counted in the results, but not displayed in the list of unanswered users.
Ideally it would be good if get_users_by_capability returned a variable for each user stating if their role assignment was hidden or not.... - see the hack posted in the comment above for an initial example
Adding MartinL and Skodak to this - do you guys have any ideas how I might be able to do this? - is there a way without modifying accesslib?