'Arguments:
dict[int: Group]: Given a user, a mapping from user
partition IDs to the group to which the user belongs in
each partition.
Returns:
bool: Whether said user has group access.'

def check_group_access(self, user_groups):

    for (partition_id, allowed_group_ids) in self._access.iteritems():
        if (partition_id not in user_groups):
            return False
        elif (user_groups[partition_id].id in allowed_group_ids):
            continue
        else:
            return False
    return True
