Bug # 2171: Add permission to QueueAdd and QueueRemove manager commands
authorMalcolm Davenport <malcolmd@digium.com>
Fri, 30 Jul 2004 20:38:45 +0000 (20:38 +0000)
committerMalcolm Davenport <malcolmd@digium.com>
Fri, 30 Jul 2004 20:38:45 +0000 (20:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3546 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 3622780..7535446 100755 (executable)
@@ -2381,8 +2381,8 @@ int load_module(void)
                ast_cli_register(&cli_remove_queue_member);
                ast_manager_register( "Queues", 0, manager_queues_show, "Queues" );
                ast_manager_register( "QueueStatus", 0, manager_queues_status, "Queue Status" );
-               ast_manager_register( "QueueAdd", 0, manager_add_queue_member, "Add interface to queue." );
-               ast_manager_register( "QueueRemove", 0, manager_remove_queue_member, "Remove interface from queue." );
+               ast_manager_register( "QueueAdd", EVENT_FLAG_AGENT, manager_add_queue_member, "Add interface to queue." );
+               ast_manager_register( "QueueRemove", EVENT_FLAG_AGENT, manager_remove_queue_member, "Remove interface from queue." );
                ast_register_application(app_aqm, aqm_exec, app_aqm_synopsis, app_aqm_descrip) ;
                ast_register_application(app_rqm, rqm_exec, app_rqm_synopsis, app_rqm_descrip) ;
        }