fix(@desktop/community): Only admin can open community settings

Fix #7379
This commit is contained in:
Michal Iskierko 2022-09-19 15:15:35 +02:00 committed by Michał Iskierko
parent b70a1c3a45
commit 680dd39c76
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,7 @@ Item {
asset.name: communityData.image
asset.color: communityData.color
asset.isImage: true
onClicked: root.infoButtonClicked()
onClicked: if (communityData.amISectionAdmin) { root.infoButtonClicked() }
anchors.top: parent.top
anchors.topMargin: Style.current.smallPadding
anchors.left: parent.left
@ -66,6 +66,7 @@ Item {
anchors.right: (implicitWidth > parent.width - 50) ? adHocChatButton.left : undefined
anchors.rightMargin: Style.current.halfPadding
type: StatusChatInfoButton.Type.OneToOneChat
hoverEnabled: communityData.amISectionAdmin
}
StatusIconTabButton {