Disable swipe delete when not editing
Only allow logout in debug
Updated to new API