Fixed permissions

Didn't return after sending permission denied message, so program flow continued into the block.