aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-06-29 00:05:33 +0200
committerMax Kellermann <max@duempel.org>2012-07-10 00:23:19 +0200
commitc1f196dbeca0704b6ed02a9699123eddd51975ba (patch)
tree9f487086371de24e794a1b21aea1e831459e61ce /src/command.c
parentce108acebbd78c85a91af823826b2025a1091b9b (diff)
downloadmpd-c1f196dbeca0704b6ed02a9699123eddd51975ba.tar.gz
mpd-c1f196dbeca0704b6ed02a9699123eddd51975ba.tar.xz
mpd-c1f196dbeca0704b6ed02a9699123eddd51975ba.zip
command: require appropriate permissions for searchadd{,pl}
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 23f679fdf..86d216a75 100644
--- a/src/command.c
+++ b/src/command.c
@@ -2054,8 +2054,8 @@ static const struct command commands[] = {
{ "rm", PERMISSION_CONTROL, 1, 1, handle_rm },
{ "save", PERMISSION_CONTROL, 1, 1, handle_save },
{ "search", PERMISSION_READ, 2, -1, handle_search },
- { "searchadd", PERMISSION_READ, 2, -1, handle_searchadd },
- { "searchaddpl", PERMISSION_READ, 3, -1, handle_searchaddpl },
+ { "searchadd", PERMISSION_ADD, 2, -1, handle_searchadd },
+ { "searchaddpl", PERMISSION_CONTROL, 3, -1, handle_searchaddpl },
{ "seek", PERMISSION_CONTROL, 2, 2, handle_seek },
{ "seekcur", PERMISSION_CONTROL, 1, 1, handle_seekcur },
{ "seekid", PERMISSION_CONTROL, 2, 2, handle_seekid },