mirror of
https://github.com/bitwarden/browser
synced 2026-01-04 09:33:27 +00:00
[PM-23788] changed the getType for canClone to address new cipherLike (#15829)
This commit is contained in:
@@ -78,7 +78,7 @@ export class ItemMoreOptionsComponent {
|
||||
switchMap(([c, restrictedTypes]) => {
|
||||
// This will check for restrictions from org policies before allowing cloning.
|
||||
const isItemRestricted = restrictedTypes.some(
|
||||
(restrictType) => restrictType.cipherType === c.type,
|
||||
(restrictType) => restrictType.cipherType === CipherViewLikeUtils.getType(c),
|
||||
);
|
||||
if (!isItemRestricted) {
|
||||
return this.cipherAuthorizationService.canCloneCipher$(c);
|
||||
|
||||
Reference in New Issue
Block a user