def get_row_limit(self, passed_limit):

        if passed_limit > self.ROW_LIMIT_MAX:
            return self.ROW_LIMIT_MAX
        else:
            return passed_limit
If the user does not have permissions at permlevel > 0, then reset the values to original / default
dataset/ETHPy150Open frictionlessdata/goodtables/goodtables/pipeline/pipeline.py/Pipeline.get_row_limit--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.validate_higher_perm_levels