mirror of
https://github.com/bitwarden/android.git
synced 2026-03-11 12:44:17 -05:00
[PM-14222] Managed user account deletion prevention (#5114)
Co-authored-by: Matt Portune <mportune@macbook-work.lan>
This commit is contained in:
@@ -344,6 +344,9 @@ data class SyncResponseJson(
|
||||
|
||||
@SerialName("status")
|
||||
val status: OrganizationStatusType,
|
||||
|
||||
@SerialName("userIsClaimedByOrganization")
|
||||
val userIsClaimedByOrganization: Boolean,
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
@@ -101,7 +101,8 @@ private const val SYNC_SUCCESS_JSON = """
|
||||
"name": "mockName-1",
|
||||
"useApi": false,
|
||||
"familySponsorshipValidUntil": "2023-10-27T12:00:00.00Z",
|
||||
"status": 1
|
||||
"status": 1,
|
||||
"userIsClaimedByOrganization": false
|
||||
}
|
||||
],
|
||||
"providers": [
|
||||
@@ -176,7 +177,8 @@ private const val SYNC_SUCCESS_JSON = """
|
||||
"name": "mockName-1",
|
||||
"useApi": false,
|
||||
"familySponsorshipValidUntil": "2023-10-27T12:00:00.00Z",
|
||||
"status": 1
|
||||
"status": 1,
|
||||
"userIsClaimedByOrganization": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -69,6 +69,7 @@ fun createMockOrganization(
|
||||
shouldUseApi = false,
|
||||
familySponsorshipValidUntil = ZonedDateTime.parse("2023-10-27T12:00:00Z"),
|
||||
status = OrganizationStatusType.ACCEPTED,
|
||||
userIsClaimedByOrganization = false,
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user