Made it possible to edit the sections again

Made the script detect if it has write access from the JSON backend