From 680dd39c76e1de33ae36c3f6a6a0acf96b58e3e8 Mon Sep 17 00:00:00 2001 From: Michal Iskierko Date: Mon, 19 Sep 2022 15:15:35 +0200 Subject: [PATCH] fix(@desktop/community): Only admin can open community settings Fix #7379 --- ui/app/AppLayouts/Chat/views/CommunityColumnView.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml b/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml index 9fc95fc539d..c26a8a638fa 100644 --- a/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml +++ b/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml @@ -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 {