Lev 17:7 BSB They must no longer offer their sacrifices to the goat demons to which they have prostituted themselves. This will be a permanent statute for them for the generations to come.’

This is regarding all animals that were to be eaten. However, later, this statute is removed, even though it says here "this will be a permanent statute".

Deu 12:15 BSB But whenever you want, you may slaughter and eat meat within any of your gates, according to the blessing the LORD your God has given you. Both the ceremonially clean and unclean may eat it as they would a gazelle or deer,

So does permanent not mean permanent? Was it mistranslated? What is going on here?