Remove capability to update xchan entries via api. If this functionality is required it should be implemented over a channel endpoint where xchan and channel info would be updated after verification.

(cherry picked from commit cb7dc2059a)

Co-authored-by: Mario Vavti <mario@mariovavti.com>
This commit is contained in:
Mario
2026-01-30 13:00:39 +00:00
parent bbd60c1a31
commit 1ef7fcda0a

View File

@@ -461,11 +461,9 @@
function api_red_xchan($type) {
if(api_user() === false)
return false;
logger('api_xchan');
if($_SERVER['REQUEST_METHOD'] === 'POST') {
$r = xchan_store($_REQUEST);
}
$r = xchan_fetch($_REQUEST);
json_return_and_die($r);
};