mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-31 02:33:44 +00:00
MDXMLINT-57
This commit is contained in:
parent
283b7a85b8
commit
9835395c73
@ -275,7 +275,6 @@ static abyss_bool is_authorized(const TSession * r, const char *command)
|
|||||||
|
|
||||||
|
|
||||||
err = 686;
|
err = 686;
|
||||||
status = "EXECUTION OF SPECIFIED API COMMAND NOT PERMITTED IN USER ACCOUNT";
|
|
||||||
|
|
||||||
if (!user_attributes(user, domain_name, NULL, NULL, NULL, &allowed_commands)) {
|
if (!user_attributes(user, domain_name, NULL, NULL, NULL, &allowed_commands)) {
|
||||||
goto end;
|
goto end;
|
||||||
@ -305,11 +304,6 @@ static abyss_bool is_authorized(const TSession * r, const char *command)
|
|||||||
|
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
ResponseStatus(r, err);
|
ResponseStatus(r, err);
|
||||||
if (status) {
|
|
||||||
ResponseError2(r, status);
|
|
||||||
} else {
|
|
||||||
ResponseError(r);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user