Incorrect permission is checked