Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Scorer <alexscorer@hotmail.com>2020-06-03 01:12:31 +0300
committerAlex Scorer <alexscorer@hotmail.com>2020-06-03 01:25:23 +0300
commitda3f5f54e201d4c8bc8bb9c75beb9e91eb53316b (patch)
tree83ef2f541b82df7ae35fc09d21e3fc7c2afd97e3 /src/mumble/ACLEditor.cpp
parentabb1f5821072a49ce9bcc6fb27b60937e6ab4638 (diff)
ACL:Add new permission for Reset Comment/Avatar in server & client
This commit introduces a new permission, ResetUserContent, to grant the ability to reset another user's comment or avatar. It also includes a check in the ACL editor window. If the server version is less than 1.4.0 then don't show the new permission in the ACL checkbox list as the server won't respond to it. On older servers the Move permission in the root channel was also used for allowing or denying comment and avatar changes.
Diffstat (limited to 'src/mumble/ACLEditor.cpp')
-rw-r--r--src/mumble/ACLEditor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mumble/ACLEditor.cpp b/src/mumble/ACLEditor.cpp
index b93ee2855..8364f49b8 100644
--- a/src/mumble/ACLEditor.cpp
+++ b/src/mumble/ACLEditor.cpp
@@ -115,6 +115,9 @@ ACLEditor::ACLEditor(int channelid, const MumbleProto::ACL &mea, QWidget *p) : Q
QString name = ChanACL::permName(perm);
if (! name.isEmpty()) {
+ // If the server's version is less than 1.4.0 then it won't support the new permission to reset a comment/avatar. Skipping this iteration of the loop prevents checkboxes for it being added to the UI.
+ if ((g.sh->uiVersion < 0x010400) && (perm == ChanACL::ResetUserContent)) continue;
+
QCheckBox *qcb;
l = new QLabel(name, qgbACLpermissions);
grid->addWidget(l, idx, 0);