diff --git a/lib/utils/services-utils.js b/lib/utils/services-utils.js --- a/lib/utils/services-utils.js +++ b/lib/utils/services-utils.js @@ -32,13 +32,18 @@ // Keep in sync with native/cpp/CommonCpp/Tools/ServicesUtils.h function useFullBackupSupportEnabled(): boolean { const isCurrentUserStaff = useIsCurrentUserStaff(); - if (getConfig().isStaffRelease) { + + const { isStaffRelease, platformDetails } = getConfig(); + const { platform } = platformDetails; + if (platform === 'ios' || platform === 'android' || isStaffRelease) { return true; } return isCurrentUserStaff; } function fullBackupSupportEnabled(userID: ?string): boolean { - if (getConfig().isStaffRelease) { + const { isStaffRelease, platformDetails } = getConfig(); + const { platform } = platformDetails; + if (platform === 'ios' || platform === 'android' || isStaffRelease) { return true; } if (!userID) { diff --git a/native/cpp/CommonCpp/Tools/ServicesUtils.cpp b/native/cpp/CommonCpp/Tools/ServicesUtils.cpp --- a/native/cpp/CommonCpp/Tools/ServicesUtils.cpp +++ b/native/cpp/CommonCpp/Tools/ServicesUtils.cpp @@ -1,12 +1,7 @@ #include "ServicesUtils.h" -#include "StaffUtils.h" namespace comm { bool ServicesUtils::fullBackupSupport() { -#if DEBUG return true; -#else - return StaffUtils::isStaffRelease(); -#endif } } // namespace comm