mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Ent 6890 condición agentes vista sap
This commit is contained in:
parent
6c2a353812
commit
1bbbbcaee1
@ -3751,6 +3751,7 @@ function agents_get_sap_agents($id_agent)
|
|||||||
// Available modules.
|
// Available modules.
|
||||||
// If you add more modules, please update SAP.pm.
|
// If you add more modules, please update SAP.pm.
|
||||||
$sap_modules = [
|
$sap_modules = [
|
||||||
|
0 => 'SAP connection',
|
||||||
160 => __('SAP Login OK'),
|
160 => __('SAP Login OK'),
|
||||||
109 => __('SAP Dumps'),
|
109 => __('SAP Dumps'),
|
||||||
111 => __('SAP lock entry list'),
|
111 => __('SAP lock entry list'),
|
||||||
@ -3770,13 +3771,16 @@ function agents_get_sap_agents($id_agent)
|
|||||||
|
|
||||||
$array_agents = [];
|
$array_agents = [];
|
||||||
foreach ($sap_modules as $module => $key) {
|
foreach ($sap_modules as $module => $key) {
|
||||||
$sql = 'SELECT ta.id_agente,ta.alias, ta.id_grupo
|
$sql = sprintf(
|
||||||
|
'SELECT ta.id_agente,ta.alias
|
||||||
FROM tagente ta
|
FROM tagente ta
|
||||||
INNER JOIN tagente_modulo tam
|
INNER JOIN tagente_modulo tam
|
||||||
ON tam.id_agente = ta.id_agente
|
ON tam.id_agente = ta.id_agente
|
||||||
WHERE tam.nombre
|
WHERE tam.nombre
|
||||||
LIKE "%SAP%"
|
LIKE "%s"
|
||||||
GROUP BY ta.id_agente';
|
GROUP BY ta.id_agente',
|
||||||
|
io_safe_input($key)
|
||||||
|
);
|
||||||
|
|
||||||
// ACL groups.
|
// ACL groups.
|
||||||
$agent_groups = array_keys(users_get_groups($config['id_user']));
|
$agent_groups = array_keys(users_get_groups($config['id_user']));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user