]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MDXMLINT-57
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 15 Sep 2010 15:58:12 +0000 (10:58 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 15 Sep 2010 15:58:12 +0000 (10:58 -0500)
src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c

index 34873f78d75fba11c2c1e3db35e5bdf42ae128e4..2e9a1a3a1ad34ed3130ad5ff9ef8c63c62395274 100644 (file)
@@ -275,7 +275,6 @@ static abyss_bool is_authorized(const TSession * r, const char *command)
 
        
        err = 686;
-       status = "EXECUTION OF SPECIFIED API COMMAND NOT PERMITTED IN USER ACCOUNT";
 
        if (!user_attributes(user, domain_name, NULL, NULL, NULL, &allowed_commands)) {
                goto end;
@@ -305,11 +304,6 @@ static abyss_bool is_authorized(const TSession * r, const char *command)
 
        if (!ok) {
                ResponseStatus(r, err);
-               if (status) {
-                       ResponseError2(r, status);
-               } else {
-                       ResponseError(r);
-               }
        }