fix: ensure view-and-post permissions are hidden when satisfied

This has slipped through during rebase.
We don't want to show the list of permissions to be fullfilled if they
are already satisfied
This commit is contained in:
Pascal Precht 2023-06-22 08:42:07 +02:00 committed by r4bbit
parent 1d086a9a65
commit bea4c8c2ad
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ Item {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: (2*Style.current.bigPadding) anchors.leftMargin: (2*Style.current.bigPadding)
visible: (!!root.viewAndPostHoldingsModel && (root.viewAndPostHoldingsModel.count > 0) visible: (!!root.viewAndPostHoldingsModel && (root.viewAndPostHoldingsModel.count > 0)
&& !root.amISectionAdmin) && !root.amISectionAdmin && !root.viewAndPostPermissionsSatisfied)
assetsModel: root.rootStore.assetsModel assetsModel: root.rootStore.assetsModel
collectiblesModel: root.rootStore.collectiblesModel collectiblesModel: root.rootStore.collectiblesModel
holdingsModel: root.viewAndPostHoldingsModel holdingsModel: root.viewAndPostHoldingsModel