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:
parent
3109f775a4
commit
276dddde48
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue