fix(Community): Add check for admin permissions for context menu
Closes: #6162
This commit is contained in:
parent
81e674da55
commit
edb014bf12
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue