git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54711
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
for (tmp = first_action ; tmp; tmp = tmp->next) {
if (strcasecmp(action, tmp->action))
continue;
- if ((s->writeperm & tmp->authority) == tmp->authority) {
- if (tmp->func(s, m)) { /* error */
- return -1;
- }
- } else
+ if ((s->writeperm & tmp->authority) == tmp->authority)
+ ret = tmp->func(s, m);
+ else
astman_send_error(s, m, "Permission denied");
break;
}