diff --git a/core/include/aoclient.h b/core/include/aoclient.h index da735eb..d35a914 100644 --- a/core/include/aoclient.h +++ b/core/include/aoclient.h @@ -241,6 +241,7 @@ class AOClient : public QObject { {"BYPASS_LOCKS", 1ULL << 14}, {"IGNORE_BGLIST", 1ULL << 15}, {"SEND_NOTICE", 1ULL << 16}, + {"JUKEBOX", 1ULL << 17}, {"SUPER", ~0ULL } }; diff --git a/core/src/commands/music.cpp b/core/src/commands/music.cpp index 88052ad..9504b50 100644 --- a/core/src/commands/music.cpp +++ b/core/src/commands/music.cpp @@ -117,7 +117,7 @@ void AOClient::cmdToggleJukebox(int argc, QStringList argv) Q_UNUSED(argc); Q_UNUSED(argv); - if (checkAuth(ACLFlags.value("CM")) | m_authenticated) { + if (checkAuth(ACLFlags.value("CM")) | checkAuth(ACLFlags.value("Jukebox"))) { AreaData* l_area = server->m_areas.value(m_current_area); l_area->toggleJukebox(); QString l_state = l_area->isjukeboxEnabled() ? "enabled." : "disabled.";