check write permission in client generator