Merge f529fa62ed
into c21a58f2fb
This commit is contained in:
commit
6cd9335219
|
@ -53,14 +53,16 @@ export class VaultCollectionRowComponent {
|
|||
}
|
||||
|
||||
get permissionText() {
|
||||
if (this.collection.id != Unassigned && !(this.collection as CollectionAdminView).assigned) {
|
||||
return this.i18nService.t("noAccess");
|
||||
} else {
|
||||
if (this.collection.id == Unassigned && this.organization?.canEditUnassignedCiphers()) {
|
||||
return this.i18nService.t("canEdit");
|
||||
}
|
||||
if ((this.collection as CollectionAdminView).assigned) {
|
||||
const permissionList = getPermissionList(this.organization?.flexibleCollections);
|
||||
return this.i18nService.t(
|
||||
permissionList.find((p) => p.perm === convertToPermission(this.collection))?.labelId,
|
||||
);
|
||||
}
|
||||
return this.i18nService.t("noAccess");
|
||||
}
|
||||
|
||||
get permissionTooltip() {
|
||||
|
|
Loading…
Reference in New Issue