mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
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
f801b1bc75
commit
57c85500b3
@ -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>
|
2012-12-18 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* operation/events/events_list.php
|
* operation/events/events_list.php
|
||||||
|
@ -317,11 +317,13 @@ function config_process_config () {
|
|||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
//Check if the user have the admin flag.
|
//Check if the user have the admin flag.
|
||||||
$is_admin = (bool)db_get_value('is_admin',
|
if (isset($_SESSION['id_usuario'])) {
|
||||||
'tusuario', 'id_user', $_SESSION['id_usuario']);
|
$is_admin = (bool)db_get_value('is_admin',
|
||||||
if (!$is_admin) {
|
'tusuario', 'id_user', $_SESSION['id_usuario']);
|
||||||
return false;
|
if (!$is_admin) {
|
||||||
exit;
|
return false;
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$configs = db_get_all_rows_in_table ('tconfig');
|
$configs = db_get_all_rows_in_table ('tconfig');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user