mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
[PM-15182] Remove remove-provider-export-permission feature flag (#12878)
* Remove remove-provider-export feature flag * Remove ts-strict comment * Revert changes to tests
This commit is contained in:
@@ -17,7 +17,7 @@ export function canAccessSettingsTab(org: Organization): boolean {
|
||||
org.canManageSso ||
|
||||
org.canManageScim ||
|
||||
org.canAccessImport ||
|
||||
org.canAccessExport(false) || // Feature flag value doesn't matter here, providers will have access to this group anyway
|
||||
org.canAccessExport ||
|
||||
org.canManageDeviceApprovals
|
||||
);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ export function canAccessSettingsTab(org: Organization): boolean {
|
||||
org.canManageSso ||
|
||||
org.canManageScim ||
|
||||
org.canAccessImport ||
|
||||
org.canAccessExport(false) || // Feature flag value doesn't matter here, providers will have access to this group anyway
|
||||
org.canAccessExport ||
|
||||
org.canManageDeviceApprovals
|
||||
);
|
||||
}
|
||||
|
||||
@@ -182,11 +182,7 @@ export class Organization {
|
||||
);
|
||||
}
|
||||
|
||||
canAccessExport(removeProviderExport: boolean) {
|
||||
if (!removeProviderExport && this.isProviderUser) {
|
||||
return true;
|
||||
}
|
||||
|
||||
get canAccessExport() {
|
||||
return (
|
||||
this.isMember &&
|
||||
(this.type === OrganizationUserType.Owner ||
|
||||
|
||||
Reference in New Issue
Block a user