Fix showing the kick option to owners

Missing case in the switch defaulted to returning false for Owners, thus
preventing they with the most privileges from using those privileges.
This commit is contained in:
Kim Alvefur 2023-07-14 14:11:31 +02:00 committed by fiaxh
parent 8c8c2dc4b0
commit d0fca291ac

View file

@ -203,6 +203,8 @@ public class Module : XmppStreamModule {
case Affiliation.ADMIN: case Affiliation.ADMIN:
if (other_affiliation == Affiliation.OWNER) return false; if (other_affiliation == Affiliation.OWNER) return false;
break; break;
case Affiliation.OWNER:
return true;
default: default:
return false; return false;
} }