Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32203901
D15215.1765115428.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
D15215.1765115428.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
@@ -2,10 +2,8 @@
import base64 from 'base-64';
-import { getConfig } from './config.js';
import { getMessageForException } from './errors.js';
import type { AuthMetadata } from '../shared/identity-client-context.js';
-import { isStaff, useIsCurrentUserStaff } from '../shared/staff-utils.js';
// If this is true, then the app is able to support multiple keyservers. This
// requires the use of Tunnelbroker and the backup service to persist and sync
@@ -31,25 +29,12 @@
// compaction and logs.
// Keep in sync with native/cpp/CommonCpp/Tools/ServicesUtils.h
function useFullBackupSupportEnabled(): boolean {
- const isCurrentUserStaff = useIsCurrentUserStaff();
-
- const { isStaffRelease, platformDetails } = getConfig();
- const { platform } = platformDetails;
- if (platform === 'ios' || platform === 'android' || isStaffRelease) {
- return true;
- }
- return isCurrentUserStaff;
+ return true;
}
+// Argument userID is unused. Not an issue, this func is going to be removed.
+// eslint-disable-next-line no-unused-vars
function fullBackupSupportEnabled(userID: ?string): boolean {
- const { isStaffRelease, platformDetails } = getConfig();
- const { platform } = platformDetails;
- if (platform === 'ios' || platform === 'android' || isStaffRelease) {
- return true;
- }
- if (!userID) {
- return false;
- }
- return isStaff(userID);
+ return true;
}
function createHTTPAuthorizationHeader(authMetadata: AuthMetadata): string {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 1:50 PM (14 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5844380
Default Alt Text
D15215.1765115428.diff (1 KB)
Attached To
Mode
D15215: Enable fullBackupSupport for all platforms
Attached
Detach File
Event Timeline
Log In to Comment