From edb014bf1218554a8feb8209100575d24345fc9b Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Thu, 30 Jun 2022 16:11:04 +0300 Subject: [PATCH] fix(Community): Add check for admin permissions for context menu Closes: #6162 --- ui/app/AppLayouts/Chat/views/CommunityColumnView.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml b/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml index 8cc4d74985..bc2d0e0d80 100644 --- a/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml +++ b/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml @@ -120,9 +120,11 @@ Item { background: MouseArea { acceptedButtons: Qt.RightButton onClicked: { - popup.x = mouse.x + 4 - popup.y = mouse.y + 4 - popup.open() + if (communityData.amISectionAdmin) { + popup.x = mouse.x + 4 + popup.y = mouse.y + 4 + popup.open() + } } property var popup: StatusPopupMenu {