Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32173491
D15211.1765063138.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D15211.1765063138.diff
View Options
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 11:18 PM (19 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5841393
Default Alt Text
D15211.1765063138.diff (1 KB)
Attached To
Mode
D15211: Flip the switch to enable fullBackupSupport
Attached
Detach File
Event Timeline
Log In to Comment