From d34ae0850cf8ebde4b39e6865f21e50b74fe6c94 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 Feb 2014 23:08:22 +0100 Subject: [PATCH] AllCommands: "findadd" requires the "add" permission --- NEWS | 2 ++ src/command/AllCommands.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index df6b14373..d23544ac3 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ ver 0.18.9 (not yet released) +* protocol + - "findadd" requires the "add" permission * decoder - vorbis: fix linker failure when libvorbis/libogg are static * encoder diff --git a/src/command/AllCommands.cxx b/src/command/AllCommands.cxx index 74802ced4..36f6fb97c 100644 --- a/src/command/AllCommands.cxx +++ b/src/command/AllCommands.cxx @@ -90,7 +90,7 @@ static const struct command commands[] = { { "disableoutput", PERMISSION_ADMIN, 1, 1, handle_disableoutput }, { "enableoutput", PERMISSION_ADMIN, 1, 1, handle_enableoutput }, { "find", PERMISSION_READ, 2, -1, handle_find }, - { "findadd", PERMISSION_READ, 2, -1, handle_findadd}, + { "findadd", PERMISSION_ADD, 2, -1, handle_findadd}, { "idle", PERMISSION_READ, 0, -1, handle_idle }, { "kill", PERMISSION_ADMIN, -1, -1, handle_kill }, { "list", PERMISSION_READ, 1, -1, handle_list },