AllCommands: "findadd" requires the "add" permission

This commit is contained in:
Max Kellermann 2014-02-27 23:08:22 +01:00
parent 6526de024a
commit d34ae0850c
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -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

View File

@ -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 },