X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/8696c036b17b561f3b6afb9a56e0d5839b8b9972..b49bcec7b53d0fef70585697308ba2473cd961e9:/sistema/www/usuarios/usuarios-abm.php?ds=sidebyside diff --git a/sistema/www/usuarios/usuarios-abm.php b/sistema/www/usuarios/usuarios-abm.php index 1a7248c..7b5f162 100644 --- a/sistema/www/usuarios/usuarios-abm.php +++ b/sistema/www/usuarios/usuarios-abm.php @@ -37,7 +37,7 @@ $SAMURAI_PERM->chequear(SAMURAI_ALTA_USUARIO, SAMURAI_BAJA_USUARIO, SAMURAI_MODI require_once 'MECON/HTML/Image.php'; // }}} //VEO SI HAY QUE ELEGIR EN QUE SISTEMA TRABAJAR {{{ -if (!@$_SESSION['samurai']['id_sistema'] || !@$_SESSION['samurai']['login']) { +if (!@$_SESSION['samurai']['id_sistema']) { header('Location: ./../sel-sistema'); } // }}} @@ -78,7 +78,7 @@ if (!@$_SESSION['samurai']['id_sistema'] || !@$_SESSION['samurai']['login']) { $FORM->addElement ('text' , 'login' , 'Login@Organismo' , array( 'value' => $login , 'size' => '20')); } $FORM->addElement ('select', 'perfiles' , 'Perfiles', $PERFILES, array('size' => '5', 'multiple' => 'true')); - $FORM->addElement ('hidden', 'responsable', $_SESSION['samurai']['login']); + $FORM->addElement ('hidden', 'responsable', $_SESSION['usuario']); $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar'); $group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:window.location = \'usuarios\';return false;')); $FORM->addGroup($group,'botones');