legal mining permits