'Returns a boolean indicating whether the given user_id identifies a
privileged user.'

def _is_user_privileged(self, user_id):

    return ((user_id in self.context['staff_user_ids']) or (user_id in self.context['ta_user_ids']))
