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:
parent
56b616f38b
commit
7b9c78b843
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit da2f155f2df52d689d400bffc11e67b463ddcac9
|
||||
Subproject commit a8678575a72070edb815a2b799afdd8f400d5155
|
Loading…
Reference in New Issue