Critical currents in bulk samples of YBa2Cu3O7−δ and DyBa2Cu3O7−δ