1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

[PM-25941] - only limit item creation when not allowed by a collection (#16485)

* only limit item creation when not allowed by a collection

* simplify logic

* fix logic
This commit is contained in:
Jordan Aasen
2025-09-19 10:17:28 -07:00
committed by GitHub
parent 51ed3d8aed
commit 589099daec

View File

@@ -109,7 +109,7 @@
filter && filter &&
filter.type !== "trash" && filter.type !== "trash" &&
filter.collectionId !== Unassigned && filter.collectionId !== Unassigned &&
selectedCollection?.node?.canEditItems(organization) (!selectedCollection || selectedCollection.node?.canEditItems(organization))
) { ) {
<button <button
slot="button" slot="button"