fix: don't allow admins to kick or ban admins

This hides the action items to kick or ban users if they happen to be
admins. There's also a change in status-go that prevents admins to kick
or ban other admins that has to land first here:

https://github.com/status-im/status-go/pull/3666

Closes #10936
This commit is contained in:
Pascal Precht 2023-06-23 09:19:26 +02:00 committed by r4bbit
parent 56b616f38b
commit 7b9c78b843
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ Item {
readonly property bool itsMe: model.pubKey.toLowerCase() === userProfile.pubKey.toLowerCase()
readonly property bool isHovered: memberItem.sensor.containsMouse
readonly property bool canBeBanned: !memberItem.itsMe && model.memberRole !== Constants.memberRole.owner
readonly property bool canBeBanned: !memberItem.itsMe && (model.memberRole !== Constants.memberRole.owner && model.memberRole !== Constants.memberRole.admin)
statusListItemComponentsSlot.spacing: 16
statusListItemTitleArea.anchors.rightMargin: 0

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit da2f155f2df52d689d400bffc11e67b463ddcac9
Subproject commit a8678575a72070edb815a2b799afdd8f400d5155