fix(Community): Add check for admin permissions for context menu

Closes: #6162
This commit is contained in:
Boris Melnik 2022-06-30 16:11:04 +03:00
parent 81e674da55
commit edb014bf12
1 changed files with 5 additions and 3 deletions

View File

@ -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 {