Added check in the backend to see if write is disabled