Adjusted permission hook routine

Hard brackets not necessary