Checking if have write permission