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

* include/functions_config.php: erased double check for admin user
	in action to update config.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7332 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2012-12-26 14:56:32 +00:00
parent 4e47872140
commit 16a0b832ac
2 changed files with 5 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2012-12-26 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php: erased double check for admin user
in action to update config.
2012-12-26 Sergio Martin <sergio.martin@artica.es>
* pandoradb_data.sql

View File

@ -316,16 +316,6 @@ function config_update_config () {
function config_process_config () {
global $config;
//Check if the user have the admin flag.
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');
if (empty ($configs)) {