Error handling better

Since SciresM inverted my editing logic (editing == program is editing
the layout, not the person is able to edit) so screwy.