Browse Source

[EC-200] Handle an edge case where ciphers were not selectable (#1674)

(cherry picked from commit be30d47038)
pull/1680/head
Oscar Hinton 4 years ago committed by Hinton
parent
commit
cb1f08d74b
  1. 6
      src/app/modules/vault/modules/organization-vault/organization-vault.component.ts

6
src/app/modules/vault/modules/organization-vault/organization-vault.component.ts

@ -123,7 +123,11 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy { @@ -123,7 +123,11 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
this.route.queryParams.subscribe(async (params) => {
if (params.cipherId) {
if ((await this.cipherService.get(params.cipherId)) != null) {
if (
// Handle users with implicit collection access since they use the admin endpoint
this.organization.canEditAnyCollection ||
(await this.cipherService.get(params.cipherId)) != null
) {
this.editCipherId(params.cipherId);
} else {
this.platformUtilsService.showToast(

Loading…
Cancel
Save