mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-25 19:09:08 +02:00
Changed sintaxis
Former-commit-id: 4011dbcba98ad59e7a152e2e3e87c6ae8d646a85
This commit is contained in:
parent
8c27411be6
commit
28eae48a9e
@ -113,7 +113,7 @@ if ($correctLogin) {
|
|||||||
|
|
||||||
$id_os = db_get_value_sql('select id_os from tagente where id_agente = '.$id);
|
$id_os = db_get_value_sql('select id_os from tagente where id_agente = '.$id);
|
||||||
|
|
||||||
if ($id_os === 100) {
|
if ($id_os == 100) {
|
||||||
returnError('not_allowed_operation_cluster', $returnType);
|
returnError('not_allowed_operation_cluster', $returnType);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ if ($correctLogin) {
|
|||||||
|
|
||||||
$id_os = db_get_value_sql('select id_os from tagente where nombre = "'.$id.'"');
|
$id_os = db_get_value_sql('select id_os from tagente where nombre = "'.$id.'"');
|
||||||
|
|
||||||
if ($id_os === 100) {
|
if ($id_os == 100) {
|
||||||
returnError('not_allowed_operation_cluster', $returnType);
|
returnError('not_allowed_operation_cluster', $returnType);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -142,7 +142,7 @@ if ($correctLogin) {
|
|||||||
|
|
||||||
$id_os = db_get_value_sql('select id_os from tagente where id_agente = (select id_agente from tagente_modulo where id_agente_modulo ='.$id.')');
|
$id_os = db_get_value_sql('select id_os from tagente where id_agente = (select id_agente from tagente_modulo where id_agente_modulo ='.$id.')');
|
||||||
|
|
||||||
if ($id_os === 100) {
|
if ($id_os == 100) {
|
||||||
returnError('not_allowed_operation_cluster', $returnType);
|
returnError('not_allowed_operation_cluster', $returnType);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -151,7 +151,7 @@ if ($correctLogin) {
|
|||||||
case 'get_info_user_name':
|
case 'get_info_user_name':
|
||||||
$id_os = get_info_user_name($type, $user);
|
$id_os = get_info_user_name($type, $user);
|
||||||
|
|
||||||
if ($id_os === 100) {
|
if ($id_os == 100) {
|
||||||
returnError('not_allowed_operation_cluster', $returnType);
|
returnError('not_allowed_operation_cluster', $returnType);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user