Skip to content

Commit

Permalink
Merge PR #6700: CHANGE(server): Extended user stats now requires Ban ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl authored Jan 13, 2025
2 parents 66e202f + 19950b2 commit 86bd72f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/murmur/Messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2246,7 +2246,7 @@ void Server::msgUserStats(ServerUser *uSource, MumbleProto::UserStats &msg) {
const BandwidthRecord &bwr = pDstServerUser->bwr;
const QList< QSslCertificate > &certs = pDstServerUser->peerCertificateChain();

bool extend = (uSource == pDstServerUser) || hasPermission(uSource, qhChannels.value(0), ChanACL::Register);
bool extend = (uSource == pDstServerUser) || hasPermission(uSource, qhChannels.value(0), ChanACL::Ban);

if (!extend && !hasPermission(uSource, pDstServerUser->cChannel, ChanACL::Enter)) {
PERM_DENIED(uSource, pDstServerUser->cChannel, ChanACL::Enter);
Expand Down

0 comments on commit 86bd72f

Please sign in to comment.