Add new field for USER info to manager interface perms
authorMark Spencer <markster@digium.com>
Mon, 14 Apr 2003 18:47:36 +0000 (18:47 +0000)
committerMark Spencer <markster@digium.com>
Mon, 14 Apr 2003 18:47:36 +0000 (18:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@846 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/manager.h
manager.c

index 3e13998..d5171ec 100755 (executable)
@@ -45,6 +45,7 @@
 #define EVENT_FLAG_VERBOSE             (1 << 3) /* Verbose messages */
 #define EVENT_FLAG_COMMAND             (1 << 4) /* Ability to read/set commands */
 #define EVENT_FLAG_AGENT               (1 << 5) /* Ability to read/set agent info */
+#define EVENT_FLAG_USER                 (1 << 6) /* Ability to read/set user info */
 
 /* JDG: export manager structures */
 #define MAX_HEADERS 80
index bf5d242..5195bee 100755 (executable)
--- a/manager.c
+++ b/manager.c
@@ -53,6 +53,7 @@ static struct permalias {
        { EVENT_FLAG_VERBOSE, "verbose" },
        { EVENT_FLAG_COMMAND, "command" },
        { EVENT_FLAG_AGENT, "agent" },
+       { EVENT_FLAG_USER, "user" },
        { -1, "all" },
 };