Add full permissions editor window (#71)

The "Rechte" top menu's four previously-disabled items now open a tabbed
editor matching the real TS3 client's window: Server Gruppen, Client
Rechte, Channel Rechte, Channel Gruppen, Channel Client Rechte. For each
tab you pick a group/channel/client (or combination), see its currently
assigned permissions in a filterable table, add new ones from a searchable
catalog, and remove existing ones.

Connector: new servergrouppermlist/channelgrouppermlist/channelpermlist/
clientpermlist/channelclientpermlist request handling (unified behind one
"permlist <scope> ..." stdin command and a single-target pending-list
mechanism, mirroring the existing permoverview pattern's name-resolution
cache) plus servergroupaddperm/-delperm, channelgroupaddperm/-delperm,
channeladdperm/-delperm, clientaddperm/-delperm, channelclientaddperm/
-delperm for mutating them, and a "permissionlist" command to expose the
full permission catalog (needed for the "add permission" picker).

Verified against the real server: permission list/catalog requests reach
the server correctly. The test guest account turns out to lack rights to
see permission names/IDs at all (server replies with only the hierarchy's
group-boundary markers, no populated permid/permname) - same class of
account-permission ceiling as banlist/file uploads/etc. earlier in this
project, not a bug in this feature. Add/remove wire commands support both
numeric permid and permsid addressing per the protocol, so this should
work fully for an account with actual view rights (e.g. the real server
admin), even though it couldn't be exercised end-to-end with this guest
account. Full interactive verification (list, add, remove) done in demo
mode instead.

"Rechteübersicht" (viewing another client's computed effective
permissions with grant provenance) stays disabled - a materially
different feature the connector doesn't support.
This commit is contained in:
Moepchi committed 2026-08-06 00:16:30 +02:00
1 parent 6d6803d9b3
commit ea7b97b161
7 files changed
+1045 -11

No files matched your search

+26
View File
@@ -411,6 +411,19 @@ const translations: Record<Lang, Record<string, string>> = {
"permissionOverview.negated": "Negiert",
"permissionOverview.skip": "Skip",
"permsEditor.title": "Rechte",
"permsEditor.tab.server": "Server Gruppen",
"permsEditor.tab.client": "Client Rechte",
"permsEditor.tab.channel": "Channel Rechte",
"permsEditor.tab.channelgroup": "Channel Gruppen",
"permsEditor.tab.channelclient": "Channel Client Rechte",
"permsEditor.clientDbId": "Eindeutige Client-DB-ID:",
"permsEditor.load": "Laden",
"permsEditor.pickOnlineClient": "Oder Online-Client wählen...",
"permsEditor.pickTarget": "Bitte links eine Gruppe/einen Channel wählen bzw. eine Client-ID eingeben.",
"permsEditor.addPermission": "Hinzufügen",
"permsEditor.searchPermission": "Recht suchen...",
"dialog.ok": "OK",
"channelContext.files": "Dateien...",
"fileBrowser.title": "Dateitransfers",
@@ -889,6 +902,19 @@ const translations: Record<Lang, Record<string, string>> = {
"permissionOverview.negated": "Negated",
"permissionOverview.skip": "Skip",
"permsEditor.title": "Permissions",
"permsEditor.tab.server": "Server Groups",
"permsEditor.tab.client": "Client Permissions",
"permsEditor.tab.channel": "Channel Permissions",
"permsEditor.tab.channelgroup": "Channel Groups",
"permsEditor.tab.channelclient": "Channel Client Permissions",
"permsEditor.clientDbId": "Unique client DB ID:",
"permsEditor.load": "Load",
"permsEditor.pickOnlineClient": "Or pick an online client...",
"permsEditor.pickTarget": "Pick a group/channel on the left, or enter a client ID.",
"permsEditor.addPermission": "Add",
"permsEditor.searchPermission": "Search permission...",
"dialog.ok": "OK",
"channelContext.files": "Files...",
"fileBrowser.title": "File Transfers",