diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2007-11-29 13:30:50 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2007-11-29 13:30:50 +0000 |
commit | c13ed407dbc7ad3bee6c79053e174b6823202ad1 (patch) | |
tree | c2290b1b99a3f1555aecea8e85a431afc1f2712a /main | |
parent | 57a519e4b18da725b435644489f7625c4cb35f3c (diff) |
restore behavior from the 1.4 branch... manager users created via users.conf should default to *all* permissions, not none
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90149 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/manager.c b/main/manager.c index 7e637ff4e..d14619645 100644 --- a/main/manager.c +++ b/main/manager.c @@ -1049,6 +1049,10 @@ static int authenticate(struct mansession *s, const struct message *m) ast_log(LOG_NOTICE, "%s tried to authenticate with nonexistent user '%s'\n", ast_inet_ntoa(s->sin.sin_addr), user); return -1; } + if (!readperm) + readperm = -1; + if (!writeperm) + writeperm = -1; } } |