Skip to content

Commit

Permalink
fix(@desktop/community): Only admin can open community settings
Browse files Browse the repository at this point in the history
Fix #7379
  • Loading branch information
endulab committed Sep 21, 2022
1 parent b70a1c3 commit 680dd39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/app/AppLayouts/Chat/views/CommunityColumnView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ 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
anchors.leftMargin: Style.current.halfPadding
anchors.right: (implicitWidth > parent.width - 50) ? adHocChatButton.left : undefined
anchors.rightMargin: Style.current.halfPadding
type: StatusChatInfoButton.Type.OneToOneChat
hoverEnabled: communityData.amISectionAdmin
}

StatusIconTabButton {
Expand Down

0 comments on commit 680dd39

Please sign in to comment.