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 {
|
||||
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…
x
Reference in New Issue
Block a user