Fixing error when you don't have permission to save a record. Issue #146