2012-12-18 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_config.php: fixed check if it set the id_user
	in the session.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7302 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2012-12-18 14:43:33 +00:00
parent 3109f775a4
commit 276dddde48
2 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2012-12-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: fixed check if it set the id_user
in the session.
2012-12-18 Sergio Martin <sergio.martin@artica.es>
* operation/events/events_list.php

View File

@ -317,11 +317,13 @@ function config_process_config () {
global $config;
//Check if the user have the admin flag.
$is_admin = (bool)db_get_value('is_admin',
'tusuario', 'id_user', $_SESSION['id_usuario']);
if (!$is_admin) {
return false;
exit;
if (isset($_SESSION['id_usuario'])) {
$is_admin = (bool)db_get_value('is_admin',
'tusuario', 'id_user', $_SESSION['id_usuario']);
if (!$is_admin) {
return false;
exit;
}
}
$configs = db_get_all_rows_in_table ('tconfig');