mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
Adding include my items to the services and reports (#16987)
This commit is contained in:
@@ -76,7 +76,10 @@ export abstract class CipherService implements UserKeyRotationDataProvider<Ciphe
|
||||
/** When true, will override the match strategy for the cipher if it is Never. */
|
||||
overrideNeverMatchStrategy?: true,
|
||||
): Promise<C[]>;
|
||||
abstract getAllFromApiForOrganization(organizationId: string): Promise<CipherView[]>;
|
||||
abstract getAllFromApiForOrganization(
|
||||
organizationId: string,
|
||||
includeMemberItems?: boolean,
|
||||
): Promise<CipherView[]>;
|
||||
/**
|
||||
* Gets ciphers belonging to the specified organization that the user has explicit collection level access to.
|
||||
* Ciphers that are not assigned to any collections are only included for users with admin access.
|
||||
|
||||
@@ -691,8 +691,14 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
.sort((a, b) => this.sortCiphersByLastUsedThenName(a, b));
|
||||
}
|
||||
|
||||
async getAllFromApiForOrganization(organizationId: string): Promise<CipherView[]> {
|
||||
const response = await this.apiService.getCiphersOrganization(organizationId);
|
||||
async getAllFromApiForOrganization(
|
||||
organizationId: string,
|
||||
includeMemberItems?: boolean,
|
||||
): Promise<CipherView[]> {
|
||||
const response = await this.apiService.getCiphersOrganization(
|
||||
organizationId,
|
||||
includeMemberItems,
|
||||
);
|
||||
return await this.decryptOrganizationCiphersResponse(response, organizationId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user