Parliament to get vote on final Brexit deal

It was announced today that Parliament will get a vote on the final Brexit deal before it is put into action.

This will allow the House of Commons and House of Lords to review and amend the proposition, although it is not clear what would happen should either chamber refuse to pass the legislation.

What do you think of this? Should they have been allowed to vote?