How to revert setting change that caused bootloop?
It should be by using the file manager under TWRP. Navigate to /data/system/ and look fo appops.xml. rename it to appops.xml.bak so you can have a backup and reboot.

PS: as per this post stackoverflow, you might lose also the notifications setting. But most probably those can be reset after boot.