mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +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:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user