X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/2dd89e44c718262ef75b7c451d947a5e866b3e67..b49bcec7b53d0fef70585697308ba2473cd961e9:/sistema/www/permisos/permisos-abm.php?ds=inline diff --git a/sistema/www/permisos/permisos-abm.php b/sistema/www/permisos/permisos-abm.php index 3a29150..d6b69ef 100644 --- a/sistema/www/permisos/permisos-abm.php +++ b/sistema/www/permisos/permisos-abm.php @@ -21,9 +21,7 @@ // //VERIFICO SI SE TIENE ACCESO A LA PAGINA{{{ - if (!$SAMURAI_PERM->tiene(SAMURAI_DEVELOPER)) { -// header('Location: error') - } +$SAMURAI_PERM->chequear(SAMURAI_DEVELOPER); //}}} //REQUIRE_ONCE {{{ //MECON {{{ @@ -42,7 +40,7 @@ $FORM->addElement ('header', 'cabecera', 'ABM Permisos'); $FORM->addElement ('hidden', 'id_permiso'); $FORM->addElement ('text' , 'desc_permiso', 'Descripcion', array('size'=>'50')); - $FORM->addElement ('hidden', 'responsable' , $_SESSION['samurai']['login']); + $FORM->addElement ('hidden', 'responsable' , $_SESSION['usuario']); $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar'); $group[] = HTML_QuickForm::createElement('button', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:history.go(-1);return true;')); $FORM->addGroup($group,'botones');