protected function get_row_attributes($capability) {
        $rowattributes = parent::get_row_attributes($capability);
        if ($this->permissions[$capability->name] !== 0) {
            if (empty($rowattributes['class'])) {
                $rowattributes['class'] = "overriddenpermission";
            } else {
                $rowattributes['class'] .= " overriddenpermission";
            }
        }
        return $rowattributes;
    }