Commit 24afdee3 authored by Max Kellermann's avatar Max Kellermann

command/all: "tagtypes" requires no permissions

The command is used to configure the client's connection, and this shouldn't require any permissions. The client should be able to do that before sending a password.
parent 7aea2853
ver 0.21.24 (not yet released) ver 0.21.24 (not yet released)
* protocol
- "tagtypes" requires no permissions
* fix unit test failure * fix unit test failure
ver 0.21.23 (2020/04/23) ver 0.21.23 (2020/04/23)
......
...@@ -193,7 +193,7 @@ static constexpr struct command commands[] = { ...@@ -193,7 +193,7 @@ static constexpr struct command commands[] = {
{ "subscribe", PERMISSION_READ, 1, 1, handle_subscribe }, { "subscribe", PERMISSION_READ, 1, 1, handle_subscribe },
{ "swap", PERMISSION_CONTROL, 2, 2, handle_swap }, { "swap", PERMISSION_CONTROL, 2, 2, handle_swap },
{ "swapid", PERMISSION_CONTROL, 2, 2, handle_swapid }, { "swapid", PERMISSION_CONTROL, 2, 2, handle_swapid },
{ "tagtypes", PERMISSION_READ, 0, -1, handle_tagtypes }, { "tagtypes", PERMISSION_NONE, 0, -1, handle_tagtypes },
{ "toggleoutput", PERMISSION_ADMIN, 1, 1, handle_toggleoutput }, { "toggleoutput", PERMISSION_ADMIN, 1, 1, handle_toggleoutput },
#ifdef ENABLE_DATABASE #ifdef ENABLE_DATABASE
{ "unmount", PERMISSION_ADMIN, 1, 1, handle_unmount }, { "unmount", PERMISSION_ADMIN, 1, 1, handle_unmount },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment