mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +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;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user