What’s the process for handling a sync’d object that’s deleted, but the Rules are set to prevent a write.
In other words, in the console, the Define Permissions for the App are set to write: false
And then in the app data is deleted
do {
try realm.write {
realm.delete(task)
self.taskTableView.reloadData()
}
} catch let err as NSError {
print(err.localizedDescription)
}
The end result is while an error is thrown, which is caught by the catch block, the task object is still deleted locally.
How does one roll that back or prevent the object from being deleted locally?
Or is there a totally different approach?