[AC-2115] Update admin view to also collection check manage flag (#7848)
This commit is contained in:
parent
893197de43
commit
c26f1fbf0e
|
@ -33,13 +33,13 @@ export class CollectionAdminView extends CollectionView {
|
|||
|
||||
override canEdit(org: Organization): boolean {
|
||||
return org?.flexibleCollections
|
||||
? org?.canEditAnyCollection
|
||||
? org?.canEditAnyCollection || this.manage
|
||||
: org?.canEditAnyCollection || (org?.canEditAssignedCollections && this.assigned);
|
||||
}
|
||||
|
||||
override canDelete(org: Organization): boolean {
|
||||
return org?.flexibleCollections
|
||||
? org?.canDeleteAnyCollection
|
||||
? org?.canDeleteAnyCollection || (!org?.limitCollectionCreationDeletion && this.manage)
|
||||
: org?.canDeleteAnyCollection || (org?.canDeleteAssignedCollections && this.assigned);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue