Joywork/ajax/chat/removeUserFromChannel.php

10 lines
247 B
PHP
Raw Permalink Normal View History

2026-05-22 20:21:54 +02:00
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/config.php");
if ($_SESSION['id'] && $_POST['groupId'] && $_POST['userId']) {
$post = clearInputData($_POST);
echo RocketChat::removeUserFromChannel($post['groupId'], $post['userId']);
}