mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* general/shortcut_bar.php: Fixed bug when the user doesn't have 'LM' permissions. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5470 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b8027d9e7f
commit
ebb2b0bb22
@ -1,3 +1,8 @@
|
|||||||
|
2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
|
* general/shortcut_bar.php: Fixed bug when the user doesn't have
|
||||||
|
'LM' permissions.
|
||||||
|
|
||||||
2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||||
|
|
||||||
* include/functions_api.php: Added get_alert_template function to
|
* include/functions_api.php: Added get_alert_template function to
|
||||||
|
@ -71,8 +71,13 @@
|
|||||||
id_grupo IN (".implode (",",array_keys ($own_groups)).") AND estado IN (0)
|
id_grupo IN (".implode (",",array_keys ($own_groups)).") AND estado IN (0)
|
||||||
ORDER BY actualizacion";
|
ORDER BY actualizacion";
|
||||||
|
|
||||||
$result_incidents_update = db_get_all_rows_sql ($sql);
|
|
||||||
|
if (!empty($own_groups)){
|
||||||
|
$result_incidents_update = db_get_all_rows_sql ($sql);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$result_incidents_update = false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($result_incidents_update === false)
|
if ($result_incidents_update === false)
|
||||||
$shortcut_incidents = 0;
|
$shortcut_incidents = 0;
|
||||||
@ -145,9 +150,13 @@
|
|||||||
$sql = "SELECT count(*) total_incidents FROM tincidencia WHERE
|
$sql = "SELECT count(*) total_incidents FROM tincidencia WHERE
|
||||||
id_grupo IN (".implode (",",array_keys ($own_groups)).") AND estado IN (0)
|
id_grupo IN (".implode (",",array_keys ($own_groups)).") AND estado IN (0)
|
||||||
ORDER BY actualizacion";
|
ORDER BY actualizacion";
|
||||||
|
|
||||||
$result_incidents = db_get_all_rows_sql ($sql);
|
|
||||||
|
|
||||||
|
if (!empty($own_groups)){
|
||||||
|
$result_incidents = db_get_all_rows_sql ($sql);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$result_incidents = false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($result_incidents === false)
|
if ($result_incidents === false)
|
||||||
$shortcut_incidents = 0;
|
$shortcut_incidents = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user