Skip to content

Commit

Permalink
Backport "Merge PR #6700: CHANGE(server): Extended user stats now req…
Browse files Browse the repository at this point in the history
…uires Ban ACL" to 1.5.x (#6701)
  • Loading branch information
Hartmnt authored Jan 16, 2025
2 parents 2e7db59 + 91742a7 commit c5bcbe9
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 @@ -2251,7 +2251,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 c5bcbe9

Please sign in to comment.