aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-06-29 00:05:33 +0200
committerAnton Khirnov <anton@khirnov.net>2013-11-04 10:52:50 +0100
commit8a79de96ec77c82d48f73df62d58e9d27c1b95ff (patch)
treef9abca6fec4e669bd5eed4a8852164fae36a6747
parent7c25ac54e4e517f74527bf05e92e21b72ec699fe (diff)
command: require appropriate permissions for searchadd{,pl}
-rw-r--r--NEWS2
-rw-r--r--src/command.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 04bbffc4..24c978f7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.17.1 (2012/??/??)
+* protocol:
+ - require appropriate permissions for searchadd{,pl}
ver 0.17 (2012/06/27)
* protocol:
diff --git a/src/command.c b/src/command.c
index 23f679fd..86d216a7 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 },