Offer move/kick/ban when the server won't tell our powers
Asking for i_client_move_power and the like (permget) needs b_client_permissionoverview_own, which custom moderator groups often lack although they hold the powers; servergrouppermlist is refused too. A refusal counted as 0, so Android hid actions the official client allows. Now a refusal means unknown and the actions are offered, as the official client always does, leaving the server to judge; only an answered 0 hides them. Verified with such a group on a local 3.13.7 server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -366,7 +366,7 @@ final class ComplaintsDialog extends JDialog {
|
||||
int[] rows = table.getSelectedRows();
|
||||
if (rows.length != 1) return null;
|
||||
ServerModel model = conn.getModel();
|
||||
if (model.selfPower("i_client_ban_power") == 0) return null;
|
||||
if (!model.mayHavePower("i_client_ban_power")) return null;
|
||||
Row row = tableModel.get(rows[0]);
|
||||
ClientEntry client = model.findClientByDatabaseId(row.isTarget() ? row.target().dbId() : row.complaint().fromDbId());
|
||||
return client == null || client.id == conn.getSelfClientId() ? null : client;
|
||||
|
||||
Reference in New Issue
Block a user