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.
This commit is contained in:
Max Kellermann
2020-04-30 13:07:42 +02:00
parent 7aea285361
commit 24afdee35c
2 changed files with 3 additions and 1 deletions

View File

@@ -193,7 +193,7 @@ static constexpr struct command commands[] = {
{ "subscribe", PERMISSION_READ, 1, 1, handle_subscribe },
{ "swap", PERMISSION_CONTROL, 2, 2, handle_swap },
{ "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 },
#ifdef ENABLE_DATABASE
{ "unmount", PERMISSION_ADMIN, 1, 1, handle_unmount },