Findadd permission is incorrectly set to PERMISSION_READ, attached patch changes it to PERMISSION_WRITE.
Anton Khirnov
From a4aa4cf9dd2e7cc5f41401e670a3ac8e8f3b0c1d Mon Sep 17 00:00:00 2001 From: Anton Khirnov <wys...@gmail.com> Date: Wed, 26 Aug 2009 07:44:22 +0200 Subject: [PATCH] command: findadd should be PERMISSION_ADD, not PERMISSION_READ. --- src/command.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/command.c b/src/command.c index 58e9316..91bcaa6 100644 --- a/src/command.c +++ b/src/command.c @@ -1695,7 +1695,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 }, -- 1.6.3.3
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Musicpd-dev-team mailing list Musicpd-dev-team@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team