mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
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 {
|
background: MouseArea {
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
popup.x = mouse.x + 4
|
if (communityData.amISectionAdmin) {
|
||||||
popup.y = mouse.y + 4
|
popup.x = mouse.x + 4
|
||||||
popup.open()
|
popup.y = mouse.y + 4
|
||||||
|
popup.open()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
property var popup: StatusPopupMenu {
|
property var popup: StatusPopupMenu {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user