mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
id_agent control for pandora_revent
This commit is contained in:
parent
5cdc0b8a14
commit
46e0cbca70
@ -12905,8 +12905,10 @@ function api_set_create_event($id, $trash1, $other, $returnType)
|
|||||||
|
|
||||||
$error_msg = '';
|
$error_msg = '';
|
||||||
if ($other['data'][2] != '') {
|
if ($other['data'][2] != '') {
|
||||||
|
// Id agent assignment.
|
||||||
$id_agent = $other['data'][2];
|
$id_agent = $other['data'][2];
|
||||||
if (is_metaconsole()) {
|
// To the next if is metaconsole and id_agent is not none.
|
||||||
|
if (is_metaconsole() === true && $id_agent > 0) {
|
||||||
// On metaconsole, connect with the node to check the permissions
|
// On metaconsole, connect with the node to check the permissions
|
||||||
if (empty($values['server_id'])) {
|
if (empty($values['server_id'])) {
|
||||||
$agent_cache = db_get_row('tmetaconsole_agent', 'id_tagente', $id_agent);
|
$agent_cache = db_get_row('tmetaconsole_agent', 'id_tagente', $id_agent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user