fix: fix users being able to see admin popup

Fixes #1976
This commit is contained in:
Jonathan Rainville 2021-03-04 11:12:04 -05:00 committed by Iuri Matias
parent 81bb7fcc65
commit 4a1c497a08
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Button {
height: 40
source: chatsModel.communities.activeCommunity.thumbnailImage
anchors.verticalCenter: parent.verticalCenter
noHover: true
}
StyledText {
@ -51,6 +52,8 @@ Button {
MouseArea {
id: mouseAreaBtn
enabled: chatsModel.communities.activeCommunity.admin
visible: enabled
cursorShape: Qt.PointingHandCursor
anchors.fill: parent
onPressed: communityProfilePopup.open();